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.
This commit is contained in:
Jasper St. Pierre 2014-07-01 11:22:46 -04:00
parent bc510378b3
commit ea3b961e43

View File

@ -180,6 +180,9 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
window->rect.width = unconstrained_rect.width; window->rect.width = unconstrained_rect.width;
window->rect.height = unconstrained_rect.height; 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 /* This is a commit of an attach. We should move the window to match the
* new position the client wants. */ * new position the client wants. */
should_move = TRUE; should_move = TRUE;