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

1
dwl.c
View File

@ -600,7 +600,6 @@ 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);
} }