diff options
author | Stivvo <stivvo01@gmail.com> | 2020-10-31 16:18:23 +0100 |
---|---|---|
committer | Stivvo <stivvo01@gmail.com> | 2020-10-31 16:25:29 +0100 |
commit | 934ce085b6f4784517d4111ec5c127553a19337d (patch) | |
tree | 1bc31cebac491777c44b69422a765e0b0e3ea24b /dwl.c | |
parent | 38606a1d232aca987859808d8c6f68878b394805 (diff) |
Don't switch to disabled mons after unplug
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -704,7 +704,9 @@ cleanupmon(struct wl_listener *listener, void *data) updatemons(); - selmon = wl_container_of(mons.next, selmon, link); + 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); |