Olivier Fourdan 561d71b8ae wayland: place window if maximized before placement
If a client changes the state of a surface to issue a set_maximize, this
causes apply_pending_state() to be called before mutter has placed the
window.

If the monitor on which the window is to be shown initially is different
from the one where the pointer is placed, this causes the effect to be
played at the wrong location before the window eventually reaches its
location on another monitor.

Force the window to be placed prior to change its state to maximized in
xdg-shell so that mutter won't relocate the window afterwards.

This also avoids sending an xdg_toplevel.configure with a size of 0x0
which would cause the client to initially draw its surface with some
arbitrary size.

https://bugzilla.gnome.org/show_bug.cgi?id=782183
https://bugzilla.gnome.org/show_bug.cgi?id=781353
2017-05-22 09:22:11 +02:00
2015-07-06 00:52:18 -07:00
2017-05-11 13:45:44 +02:00
2016-04-27 20:37:47 +02:00
2014-07-31 17:50:28 +02:00
2017-04-27 17:46:16 +02:00
Description
91 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%