From: Sjoerd Simons Date: Fri, 23 Sep 2016 21:12:56 +0000 (+0200) Subject: wayland/xdg-shell: update popup window monitor early X-Git-Tag: archive/raspbian/3.22.2-3+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1bfff302b219dd9b07057effe36c18e988ed0a0e;p=mutter.git wayland/xdg-shell: update popup window monitor early As meta_window_place_with_placement_rule will trigger a configure event being sent ensure that the popup is placed on the correct monitor first to ensure the right scale factor is applied. Signed-off-by: Sjoerd Simons https://bugzilla.gnome.org/show_bug.cgi?id=771841 Gbp-Pq: Name wayland-xdg-shell-update-popup-window-monitor-early.patch --- diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c index b1b3771..4e572dc 100644 --- a/src/wayland/meta-wayland-xdg-shell.c +++ b/src/wayland/meta-wayland-xdg-shell.c @@ -793,8 +793,9 @@ finish_popup_setup (MetaWaylandXdgPopup *xdg_popup) &xdg_popup->parent_destroy_listener); window = meta_window_wayland_new (display, surface); - meta_window_place_with_placement_rule (window, &placement_rule); meta_wayland_surface_set_window (surface, window); + meta_window_update_monitor (window, FALSE); + meta_window_place_with_placement_rule (window, &placement_rule); if (seat) {