From ea3b961e43414a48582775aa53972bf56aa44e9e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 1 Jul 2014 11:22:46 -0400 Subject: [PATCH] window-wayland: Make sure the size of the buffer rect is kept up to date When we changed the setting of the buffer rect to be inside the moving code to make sure it was updated in places we were moving directly without any round-trip needed, I removed a code to set the buffer rect without remembering that's where the size of it was updated. Add back the code to update the buffer rect. This fixes Wayland windows not appearing. --- src/wayland/window-wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c index 38cf6c8ae..b29f209d8 100644 --- a/src/wayland/window-wayland.c +++ b/src/wayland/window-wayland.c @@ -180,6 +180,9 @@ meta_window_wayland_move_resize_internal (MetaWindow *window, window->rect.width = unconstrained_rect.width; window->rect.height = unconstrained_rect.height; + window->buffer_rect.width = unconstrained_rect.width; + window->buffer_rect.height = unconstrained_rect.height; + /* This is a commit of an attach. We should move the window to match the * new position the client wants. */ should_move = TRUE;