sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 378697b79d4705b96a33bd66e50ab71ec0e4c556
parent 55fe5fc580c31a5e0ce67a8d515061f94f1f92d0
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 16 Jun 2018 14:07:25 -0700

Merge pull request #2135 from emersion/wlroots-1060

Update for swaywm/wlroots#1060
Diffstat:
Msway/desktop/output.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -240,7 +240,8 @@ static void render_surface_iterator(struct wlr_surface *surface, int sx, int sy, pixman_region32_t *output_damage = data->damage; float alpha = data->alpha; - if (!wlr_surface_has_buffer(surface)) { + struct wlr_texture *texture = wlr_surface_get_texture(surface); + if (texture == NULL) { return; } @@ -259,8 +260,7 @@ static void render_surface_iterator(struct wlr_surface *surface, int sx, int sy, wlr_matrix_project_box(matrix, &box, transform, rotation, wlr_output->transform_matrix); - render_texture(wlr_output, output_damage, surface->texture, &box, matrix, - alpha); + render_texture(wlr_output, output_damage, texture, &box, matrix, alpha); } static void render_layer(struct sway_output *output,