summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 338f9e6..69ca78e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -428,10 +428,7 @@ buttonpress(struct wl_listener *listener, void *data)
void
chvt(const Arg *arg)
{
- struct wlr_session *s = wlr_backend_get_session(backend);
- if (!s)
- return;
- wlr_session_change_vt(s, arg->ui);
+ wlr_session_change_vt(wlr_backend_get_session(backend), arg->ui);
}
void