From 79954ec9fe8dad68096eae6c9430da1d3bdb2534 Mon Sep 17 00:00:00 2001 From: Ryo Munakata Date: Sat, 2 May 2015 21:44:04 +0900 Subject: [PATCH] desktop-shell: set the current size in the first 'resizing' configure event 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 --- desktop-shell/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index bcde3fbf..c05a5c75 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -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;