wayland: Fix a race condition with xdg_popup resize
authorOlivier Fourdan <ofourdan@redhat.com>
Fri, 25 Nov 2016 13:24:52 +0000 (14:24 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Fri, 24 Feb 2017 09:07:17 +0000 (10:07 +0100)
commit83b54bab5734f17d01633c1b5a0ce3e4896d2ee0
tree7229cbcb119e5c0ecf8e8b490c810d3ec4ea0b1c
parent1e7178e66f968e3804f8d47b618d37b8ac77b107
wayland: Fix a race condition with xdg_popup resize

When resizing an xdg_popup immediately after the initial mapping, there
is a race condition between the client and the compositor which is
processing the initial size given by the xdg_positioner, leading to the
xdg_popup to be eventually of the wrong size.

Only way to make sure the size is correct in that case is to hide and
show the window again. Considering this occurs before the initial
configure is processed, it should not be noticeable.

https://bugzilla.gnome.org/show_bug.cgi?id=772505
gdk/wayland/gdkwindow-wayland.c