forked from mirror/dwl
wlr_session_change_vt is NULL safe
This commit is contained in:
parent
c970d97f85
commit
41c3f91b03
1 changed files with 1 additions and 4 deletions
5
dwl.c
5
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
|
||||
|
|
Loading…
Reference in a new issue