Don't switch to disabled mons after unplug

main
Stivvo 2020-10-31 16:18:23 +01:00
parent 38606a1d23
commit 934ce085b6
1 changed files with 3 additions and 1 deletions

2
dwl.c
View File

@ -704,7 +704,9 @@ cleanupmon(struct wl_listener *listener, void *data)
updatemons();
do // don't switch to disabled mons
selmon = wl_container_of(mons.next, selmon, link);
while (!selmon->wlr_output->enabled);
focusclient(selclient(), focustop(selmon), 1);
closemon(m);