From 791e8b1c5f4603413da6f452d44c58b7bd794c69 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 18 Jan 2022 18:18:53 +0000 Subject: [PATCH] desktop-shell: Fix opaque region co-ordinate confusion Opaque regions are in surface co-ordinate space, not global co-ordinate space, so the region should be anchored to (0,0). Signed-off-by: Daniel Stone --- desktop-shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 4c238efc..c46f0ba4 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -586,7 +586,7 @@ create_focus_surface(struct weston_compositor *ec, weston_view_set_position(fsurf->view, output->x, output->y); weston_surface_set_color(surface, 0.0, 0.0, 0.0, 1.0); pixman_region32_fini(&surface->opaque); - pixman_region32_init_rect(&surface->opaque, output->x, output->y, + pixman_region32_init_rect(&surface->opaque, 0, 0, output->width, output->height); pixman_region32_fini(&surface->input); pixman_region32_init(&surface->input);