summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-16 23:29:40 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-17 11:03:33 -0600
commit1044a21555776969d9e3d72bbb2fff2bc0f90eb1 (patch)
tree8aa92f7b68b3e522ed947e80b50813084e035351
parent6bcd5d8d87a972f72e23f37b94cc59d77d76c4cc (diff)
do not check if `session` is non-NULL
wlr_session_change_vt() is a no-op if session == NULL
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 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