rootston: remove unmapped surface from desktop

This commit is contained in:
Tony Crisci 2017-11-20 07:40:22 -05:00
parent 083fe4506b
commit 4d6b3618b8
2 changed files with 4 additions and 5 deletions

View file

@ -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;