xdg-shell: update shsurf->output when maximizing
authorMarek Chalupa <mchqwerty@gmail.com>
Mon, 8 Sep 2014 10:34:20 +0000 (12:34 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 10 Sep 2014 13:26:00 +0000 (16:26 +0300)
commitbfbb64bb75e8c61b1d8580ab688e494663feb4d0
tree3c4991f35c9b5905bd103dd45eb6026e055f6c2b
parent16fe4dcea9be67dd9c396be916b0d4cbb1769e76
xdg-shell: update shsurf->output when maximizing

shsurf->output is the output that user expects the shell surface
is on. When maximizing, we don't have any explicit setting of the output
like in the case of fullscreening, so set the output to the one that
the surface is currently on. In the case that the surface is not mapped yet,
(if it ever happens) use the same heuristics as for fullscreening.

This fixes the size sent with configure event, when maximizing a window.
The size is now picked up by the correct output, but the maximized
window position is still wrong. [Pekka Paalanen]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82967
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
desktop-shell/shell.c