aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2022-02-15 14:03:29 -0600
committerDevin J. Pohly <djpohly@gmail.com>2022-02-15 14:03:29 -0600
commitb860932cda7f5c621d99fcbab11886a033dddd57 (patch)
treefd302a40ca119a6bd50cb32c9fd2a21eeffd22d6
parentf4ae4c1a0b3b445632838221d2033ca8f595f482 (diff)
parent22a6f6661aedd2d36ee7bb3f0de37c92677c9f9a (diff)
Merge branch 'scenegraph3' of github:djpohly/dwl into scenegraph3
-rw-r--r--dwl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 5a08a48..d2ca5fd 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1603,7 +1603,8 @@ rendermon(struct wl_listener *listener, void *data)
* generally at the output's refresh rate (e.g. 60Hz). */
Monitor *m = wl_container_of(listener, m, frame);
Client *c;
- int skip = 0;
+ LayerSurface *layer;
+ int i, skip = 0;
struct timespec now;
/* Render if no XDG clients have an outstanding resize. */
@@ -1617,6 +1618,11 @@ rendermon(struct wl_listener *listener, void *data)
wl_list_for_each(c, &clients, link)
if (VISIBLEON(c, c->mon))
client_for_each_surface(c, rendered, &now);
+
+ for (i = 0; i < LENGTH(m->layers); i++)
+ wl_list_for_each(layer, &m->layers[i], link)
+ wlr_layer_surface_v1_for_each_surface(layer->layer_surface, rendered, &now);
+
}
void