projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b114715
)
desktop-shell: set the current size in the first 'resizing' configure event
author
Ryo Munakata
<ryomnktml@gmail.com>
Sat, 2 May 2015 12:44:04 +0000
(21:44 +0900)
committer
Bryce 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
patch
|
blob
|
history
diff --git
a/desktop-shell/shell.c
b/desktop-shell/shell.c
index bcde3fbf2edcc657247980fd84fcbe1db2fac072..c05a5c75152f7efb7077898371023fedc828cf04 100644
(file)
--- 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;