From bc9e63d3db9d057b2873c99a7b0fc4d668bf611f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 16 Sep 2015 14:16:48 +0800 Subject: [PATCH] wayland: Scale unconstrained rect changing monitor scale When a window is moved across monitors with different scales, its rectangle is scaled accordingly. We also need to scale the unconstrained_rect rectangle, so that moving a window via meta_window_move_resize() which uses the unconstrained_rect. https://bugzilla.gnome.org/show_bug.cgi?id=755097 --- src/wayland/meta-window-wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/meta-window-wayland.c b/src/wayland/meta-window-wayland.c index b10335913..8e1be30aa 100644 --- a/src/wayland/meta-window-wayland.c +++ b/src/wayland/meta-window-wayland.c @@ -361,6 +361,7 @@ meta_window_wayland_main_monitor_changed (MetaWindow *window, /* Window size. */ scale_rect_size (&window->rect, scale_factor); + scale_rect_size (&window->unconstrained_rect, scale_factor); /* Window geometry offset (XXX: Need a better place, see * meta_window_wayland_move_resize). */