Skip to content

Commit

Permalink
do not check if session is non-NULL
Browse files Browse the repository at this point in the history
wlr_session_change_vt() is a no-op if session == NULL
  • Loading branch information
sevz17 committed Nov 17, 2023
1 parent 6bcd5d8 commit 1044a21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1044a21

Please sign in to comment.