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 <ryomnktml@gmail.com>
This commit is contained in:
Ryo Munakata 2015-05-02 21:44:04 +09:00 committed by Bryce Harrington
parent b114715dae
commit 79954ec9fe
1 changed files with 3 additions and 0 deletions

View 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;