desktop-shell: set the current size in the first 'resizing' configure event
authorRyo Munakata <ryomnktml@gmail.com>
Sat, 2 May 2015 12:44:04 +0000 (21:44 +0900)
committerBryce Harrington <bryce@osg.samsung.com>
Fri, 8 May 2015 21:17:00 +0000 (14:17 -0700)
Weston has sent the first 'resizing' configure event with width=height=0.
But resizing to that size doesn't make sense.
Instead, we now send the current width and height of the surface at the beginning
of resizing.

Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
desktop-shell/shell.c

index bcde3fbf2edcc657247980fd84fcbe1db2fac072..c05a5c75152f7efb7077898371023fedc828cf04 100644 (file)
@@ -491,6 +491,9 @@ send_configure_for_surface(struct shell_surface *shsurf)
 
                width = area.width;
                height = area.height;
+       } else if (shsurf->resize_edges) {
+               width = shsurf->geometry.width;
+               height = shsurf->geometry.height;
        } else {
                width = 0;
                height = 0;