mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-05 07:15:31 -04:00
Preserve asleep disabled outputs in output config
This commit is contained in:
parent
a2d03cf618
commit
1bef5c6e96
1 changed files with 4 additions and 1 deletions
5
dwl.c
5
dwl.c
|
|
@ -2856,10 +2856,13 @@ updatemons(struct wl_listener *listener, void *data)
|
|||
|
||||
/* First remove from the layout the disabled monitors */
|
||||
wl_list_for_each(m, &mons, link) {
|
||||
if (m->wlr_output->enabled || m->asleep)
|
||||
if (m->wlr_output->enabled)
|
||||
continue;
|
||||
config_head = wlr_output_configuration_head_v1_create(config, m->wlr_output);
|
||||
config_head->state.enabled = 0;
|
||||
if (m->asleep)
|
||||
continue;
|
||||
|
||||
/* Remove this output from the layout to avoid cursor enter inside it */
|
||||
wlr_output_layout_remove(output_layout, m->wlr_output);
|
||||
closemon(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue