mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
bc510378b3
commit
ea3b961e43
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user