diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-20 07:54:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 07:54:35 -0500 |
commit | eb9fd47c2c7b3882b036edd427c3edc2b3c1ecea (patch) | |
tree | 682adbf3c1bed7df2567013e2f1d8f9ad0a65640 /rootston/output.c | |
parent | 083fe4506b9a57353fdee36ad05252742cc6429f (diff) | |
parent | 4d6b3618b8f8a953bd811b4cbf0975e6c00d96b8 (diff) |
Merge pull request #436 from acrisci/bug/roots-xsurface-unmap
rootston: remove unmapped surface from desktop
Diffstat (limited to 'rootston/output.c')
-rw-r--r-- | rootston/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/output.c b/rootston/output.c index 3b08d7bf..83ff37fd 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -38,7 +38,7 @@ static void rotate_child_position(double *sx, double *sy, double sw, double sh, static void render_surface(struct wlr_surface *surface, struct roots_desktop *desktop, struct wlr_output *wlr_output, struct timespec *when, double lx, double ly, float rotation) { - if (surface->texture->valid) { + if (wlr_surface_has_buffer(surface)) { int width = surface->current->width; int height = surface->current->height; int render_width = width * wlr_output->scale; |