[PATCH weston] desktop-shell: set the current size in the first 'resizing' configure event
Ryo Munakata
ryomnktml at gmail.com
Sat May 2 05:44:04 PDT 2015
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 at gmail.com>
---
desktop-shell/shell.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 5f54dea..50f4d39 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -489,6 +489,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;
--
2.3.7
More information about the wayland-devel
mailing list