mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-14 04:47:30 -08:00
Hide windows below in the monocle layout
When the layout is monocle, stop rendering clients other than the focused one. This improves aesthetics and readability when using a terminal with a transparent background.
This commit is contained in:
parent
44ef698d6e
commit
fbae5f8009
1 changed files with 2 additions and 1 deletions
3
dwl.c
3
dwl.c
|
@ -1175,7 +1175,8 @@ renderclients(Monitor *m, struct timespec *now)
|
|||
wl_list_for_each_reverse(c, &stack, slink) {
|
||||
/* Only render visible clients which show on this monitor */
|
||||
if (!VISIBLEON(c, c->mon) || !wlr_output_layout_intersects(
|
||||
output_layout, m->wlr_output, &c->geom))
|
||||
output_layout, m->wlr_output, &c->geom) ||
|
||||
(selmon->lt[selmon->sellt]->arrange == monocle && c != sel))
|
||||
continue;
|
||||
|
||||
surface = WLR_SURFACE(c);
|
||||
|
|
Loading…
Reference in a new issue