From 1044a21555776969d9e3d72bbb2fff2bc0f90eb1 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Thu, 16 Nov 2023 23:29:40 -0600 Subject: do not check if `session` is non-NULL wlr_session_change_vt() is a no-op if session == NULL --- dwl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 5347af6..443c2c4 100644 --- a/dwl.c +++ b/dwl.c @@ -600,8 +600,7 @@ buttonpress(struct wl_listener *listener, void *data) void chvt(const Arg *arg) { - if (session) - wlr_session_change_vt(session, arg->ui); + wlr_session_change_vt(session, arg->ui); } void -- cgit v1.2.3