Don't switch to disabled mons after unplug
This commit is contained in:
parent
38606a1d23
commit
934ce085b6
2
dwl.c
2
dwl.c
@ -704,7 +704,9 @@ cleanupmon(struct wl_listener *listener, void *data)
|
|||||||
|
|
||||||
updatemons();
|
updatemons();
|
||||||
|
|
||||||
|
do // don't switch to disabled mons
|
||||||
selmon = wl_container_of(mons.next, selmon, link);
|
selmon = wl_container_of(mons.next, selmon, link);
|
||||||
|
while (!selmon->wlr_output->enabled);
|
||||||
focusclient(selclient(), focustop(selmon), 1);
|
focusclient(selclient(), focustop(selmon), 1);
|
||||||
closemon(m);
|
closemon(m);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user