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:
Guido Cella 2020-12-11 05:41:30 +01:00
parent 44ef698d6e
commit fbae5f8009

3
dwl.c
View file

@ -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);