From 24fa07565d407d95414b803d0490c725dd242901 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 24 Apr 2018 13:10:20 +0200 Subject: layer-shell: use output_damage_{whole,from}_local_surface on map/unmap These handle rotation and scaling --- rootston/layer_shell.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rootston') diff --git a/rootston/layer_shell.c b/rootston/layer_shell.c index 7b3e8a9d..836deb42 100644 --- a/rootston/layer_shell.c +++ b/rootston/layer_shell.c @@ -255,7 +255,8 @@ static void unmap(struct wlr_layer_surface *layer_surface) { struct wlr_output *wlr_output = layer_surface->output; if (wlr_output != NULL) { struct roots_output *output = wlr_output->data; - wlr_output_damage_add_box(output->damage, &layer->geo); + output_damage_whole_local_surface(output, layer_surface->surface, + layer->geo.x, layer->geo.y, 0); } } @@ -282,7 +283,8 @@ static void handle_map(struct wl_listener *listener, void *data) { struct roots_layer_surface *layer = layer_surface->data; struct wlr_output *wlr_output = layer_surface->output; struct roots_output *output = wlr_output->data; - wlr_output_damage_add_box(output->damage, &layer->geo); + output_damage_whole_local_surface(output, layer_surface->surface, + layer->geo.x, layer->geo.y, 0); wlr_surface_send_enter(layer_surface->surface, wlr_output); } -- cgit v1.2.3