summaryrefslogtreecommitdiffstats
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorLibravatar Ivan Molodetskikh <yalterz@gmail.com>2019-09-25 17:35:41 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-11-17 20:18:42 +0100
commitbd9a53f1a3e7dba247aab0a4e4268724acc12c38 (patch)
tree1547b79a82b1c4e22512d0262cbb133a14ef10a3 /sway/desktop/render.c
parentAdd sway_surface (diff)
downloadsway-bd9a53f1a3e7dba247aab0a4e4268724acc12c38.tar.gz
sway-bd9a53f1a3e7dba247aab0a4e4268724acc12c38.tar.zst
sway-bd9a53f1a3e7dba247aab0a4e4268724acc12c38.zip
view: add max_render_time
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 916d4eba..c432b476 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -97,7 +97,7 @@ damage_finish:
97 pixman_region32_fini(&damage); 97 pixman_region32_fini(&damage);
98} 98}
99 99
100static void render_surface_iterator(struct sway_output *output, 100static void render_surface_iterator(struct sway_output *output, struct sway_view *view,
101 struct wlr_surface *surface, struct wlr_box *_box, float rotation, 101 struct wlr_surface *surface, struct wlr_box *_box, float rotation,
102 void *_data) { 102 void *_data) {
103 struct render_data *data = _data; 103 struct render_data *data = _data;
@@ -214,11 +214,11 @@ static void render_view_toplevels(struct sway_view *view,
214 render_surface_iterator, &data); 214 render_surface_iterator, &data);
215} 215}
216 216
217static void render_popup_iterator(struct sway_output *output, 217static void render_popup_iterator(struct sway_output *output, struct sway_view *view,
218 struct wlr_surface *surface, struct wlr_box *box, float rotation, 218 struct wlr_surface *surface, struct wlr_box *box, float rotation,
219 void *data) { 219 void *data) {
220 // Render this popup's surface 220 // Render this popup's surface
221 render_surface_iterator(output, surface, box, rotation, data); 221 render_surface_iterator(output, view, surface, box, rotation, data);
222 222
223 // Render this popup's child toplevels 223 // Render this popup's child toplevels
224 output_surface_for_each_surface(output, surface, box->x, box->y, 224 output_surface_for_each_surface(output, surface, box->x, box->y,