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>
dev
Ryo Munakata 10 years ago committed by Bryce Harrington
parent b114715dae
commit 79954ec9fe
  1. 3
      desktop-shell/shell.c

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

Loading…
Cancel
Save