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 changed files with 1 additions and 2 deletions

3
dwl.c
View File

@ -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