do not check if session is non-NULL

wlr_session_change_vt() is a no-op if session == NULL
This commit is contained in:
Leonardo Hernández Hernández 2023-11-16 23:29:40 -06:00
parent 6bcd5d8d87
commit 1044a21555
No known key found for this signature in database
GPG key ID: E538897EE11B9624

3
dwl.c
View file

@ -600,8 +600,7 @@ buttonpress(struct wl_listener *listener, void *data)
void void
chvt(const Arg *arg) chvt(const Arg *arg)
{ {
if (session) wlr_session_change_vt(session, arg->ui);
wlr_session_change_vt(session, arg->ui);
} }
void void