[mutter/gnome-3-22] wayland/xdg-shell: update popup window monitor early
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-22] wayland/xdg-shell: update popup window monitor early
- Date: Tue, 18 Oct 2016 09:18:21 +0000 (UTC)
commit 43a1ac3b5f43491e095866313cbaa7fef8d440d5
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Fri Sep 23 23:12:56 2016 +0200
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 <sjoerd simons collabora co uk>
https://bugzilla.gnome.org/show_bug.cgi?id=771841
src/wayland/meta-wayland-xdg-shell.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]