summaryrefslogtreecommitdiffstats
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorLibravatar Ivan Molodetskikh <yalterz@gmail.com>2019-08-17 21:58:52 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2019-09-19 19:47:24 +0300
commitfba248ed5ee3888b961e3272f7e29b9d9ecdb335 (patch)
treec080b5ae61829b6d967f328e76c178e2190b85d9 /sway/desktop/render.c
parentswaymsg.1: fix typos (diff)
downloadsway-fba248ed5ee3888b961e3272f7e29b9d9ecdb335.tar.gz
sway-fba248ed5ee3888b961e3272f7e29b9d9ecdb335.tar.zst
sway-fba248ed5ee3888b961e3272f7e29b9d9ecdb335.zip
render: set surface as sampled for presentation
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 86d40d3e..7d620bd4 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -120,6 +120,8 @@ static void render_surface_iterator(struct sway_output *output,
120 wlr_output->transform_matrix); 120 wlr_output->transform_matrix);
121 121
122 render_texture(wlr_output, output_damage, texture, &box, matrix, alpha); 122 render_texture(wlr_output, output_damage, texture, &box, matrix, alpha);
123
124 wlr_presentation_surface_sampled(server.presentation, surface);
123} 125}
124 126
125static void render_layer(struct sway_output *output, 127static void render_layer(struct sway_output *output,
@@ -267,6 +269,10 @@ static void render_saved_view(struct sway_view *view,
267 269
268 render_texture(wlr_output, damage, view->saved_buffer->texture, 270 render_texture(wlr_output, damage, view->saved_buffer->texture,
269 &box, matrix, alpha); 271 &box, matrix, alpha);
272
273 // FIXME: we should set the surface that this saved buffer originates from
274 // as sampled here.
275 // https://github.com/swaywm/sway/pull/4465#discussion_r321082059
270} 276}
271 277
272/** 278/**