summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Wiederhake <twied@gmx.net>2011-01-17 17:50:07 +0100
committerKristian Høgsberg <krh@bitplanet.net>2011-01-23 13:59:30 -0500
commitb6761dc29441025ed54b1c0035f2d2de903c32ae (patch)
tree0b20769f001d6ac96f4aa3499dc90b71b168407f
parentdc3f817538db4566f1928680156936ecbbd485d1 (diff)
fix resizing at top/left border
-rw-r--r--clients/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c
index 5f78f33..ac14fd6 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1093,6 +1093,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;
@@ -1101,7 +1103,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;