diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2020-08-16 11:32:45 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2020-08-16 11:32:45 -0500 |
commit | 41c3f91b03d67a9862ec2b04ac0b8749746611fa (patch) | |
tree | 6f6b9d6236da807be2277624d71d11fd34f694b3 | |
parent | c970d97f8578180beedf87805b400a8f5daa1e42 (diff) |
wlr_session_change_vt is NULL safe
-rw-r--r-- | dwl.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |