diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-18 15:58:48 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-18 15:58:48 +1000 |
commit | 645bf446fab8db581b04babb1a34aa3c40428058 (patch) | |
tree | 4b7374d58e0b6a5b183049bc7551db8016f8a296 /sway/desktop/output.c | |
parent | Merge remote-tracking branch 'upstream/master' into atomic (diff) | |
parent | Merge pull request #2143 from vilhalmer/mark-pool-buffers-busy (diff) | |
download | sway-645bf446fab8db581b04babb1a34aa3c40428058.tar.gz sway-645bf446fab8db581b04babb1a34aa3c40428058.tar.zst sway-645bf446fab8db581b04babb1a34aa3c40428058.zip |
Merge remote-tracking branch 'upstream/master' into atomic
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 5c26ac52..37528cac 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -285,10 +285,10 @@ static void render_surface_iterator(struct wlr_surface *surface, int sx, int sy, | |||
285 | intersects = get_view_box(&data->root_geo, data->output, data->view, | 285 | intersects = get_view_box(&data->root_geo, data->output, data->view, |
286 | sx, sy, &box); | 286 | sx, sy, &box); |
287 | } else { | 287 | } else { |
288 | if (!wlr_surface_has_buffer(surface)) { | 288 | texture = wlr_surface_get_texture(surface); |
289 | if (texture == NULL) { | ||
289 | return; | 290 | return; |
290 | } | 291 | } |
291 | texture = surface->texture; | ||
292 | intersects = get_surface_box(&data->root_geo, data->output, surface, | 292 | intersects = get_surface_box(&data->root_geo, data->output, surface, |
293 | sx, sy, &box); | 293 | sx, sy, &box); |
294 | } | 294 | } |