diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2015-09-16 14:16:48 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2015-09-24 11:39:37 +0800 |
commit | bc9e63d3db9d057b2873c99a7b0fc4d668bf611f (patch) | |
tree | 6879ca975f70d54e6e5c4a5e42f4f2a030ab1735 | |
parent | 5b5ceede2b10a282b15e061a0235b4129dfcbae6 (diff) | |
download | mutter-bc9e63d3db9d057b2873c99a7b0fc4d668bf611f.tar.gz |
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
-rw-r--r-- | src/wayland/meta-window-wayland.c | 1 |
1 files changed, 1 insertions, 0 deletions
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). */ |