aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-10-30 23:33:10 +0100
committerStivvo <stivvo01@gmail.com>2020-10-30 23:34:26 +0100
commit388ab9df2f655e7bd228b98ccf48ab612c0ffe4e (patch)
tree34e5b8e0d575153e77d42262eb6713a82bd0be2a
parent806ebffe7d7eb040c94e4bed871e525aa80b7a9b (diff)
Move disabled clients to the left
To the nearest monitor to the left of the disabled one
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 182c097..0432b42 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1459,13 +1459,13 @@ outputmgrapplyortest(struct wlr_output_configuration_v1 *config, bool test)
wl_list_for_each(config_head, &config->heads, link) {
struct wlr_output *wlr_output = config_head->state.output;
- Monitor *m;
+ Monitor *m, *newmon;
wlr_output_enable(wlr_output, config_head->state.enabled);
if (!config_head->state.enabled)
wl_list_for_each(m, &mons, link)
if (m->wlr_output->name == wlr_output->name)
- closemon(m);
+ closemon(m, wl_container_of(m->link.next, newmon, link));
if (config_head->state.enabled) {
if (config_head->state.mode)