[PATCH 4/4] fix resizing windows at top/left border
twied
twied at gmx.net
Mon Jan 17 08:56:21 PST 2011
---
clients/window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/clients/window.c b/clients/window.c
index 4f473c0..579b72c 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1050,6 +1050,8 @@ handle_configure(void *data, struct wl_shell *shell,
if(width <= 0 || height <= 0)
return;
+ window->resize_edges = edges;
+
if (window->resize_handler) {
child_width = width - 20 - window->margin * 2;
child_height = height - 60 - window->margin * 2;
@@ -1058,7 +1060,6 @@ handle_configure(void *data, struct wl_shell *shell,
child_width, child_height,
window->user_data);
} else {
- window->resize_edges = edges;
window->allocation.width = width;
window->allocation.height = height;
--
1.7.2.3
More information about the wayland-devel
mailing list