[mutter] window-wayland: Make sure the size of the buffer rect is kept up to date



commit ea3b961e43414a48582775aa53972bf56aa44e9e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jul 1 11:22:46 2014 -0400

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c
index 38cf6c8..b29f209 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]