summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2015-01-20 09:22:05 +0100
committerOlivier Fourdan <fourdan@xfce.org>2015-01-20 09:24:27 +0100
commitf28b1a2c4c1bae00f1200f1d5e5e2352220497f0 (patch)
tree8690f4550375ffc85776ee100d0af8d4869f0ee0
parent5c9d151712bca6f99483d2b6cf103bab2daefd77 (diff)
downloadxfwm4-f28b1a2c4c1bae00f1200f1d5e5e2352220497f0.tar.gz
Fix frame extents in tiling
This is a regression introduced when merging commit 918a7f2a Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
-rw-r--r--src/client.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client.c b/src/client.c
index 6ad4f5657..0e890cf5f 100644
--- a/src/client.c
+++ b/src/client.c
@@ -3195,12 +3195,12 @@ clientNewMaxSize (Client *c, XWindowChanges *wc, GdkRectangle *rect, tilePositio
switch (tile)
{
case TILE_UP:
- wc->y = full_y + frameTop (c);
- wc->height = full_h / 2 - frameTop (c) - frameBottom (c);
+ wc->y = full_y + frameExtentTop (c);
+ wc->height = full_h / 2 - frameExtentTop (c) - frameExtentBottom (c);
break;
case TILE_DOWN:
- wc->y = full_y + full_h / 2 + frameTop (c);
- wc->height = full_h - full_h / 2 - frameTop (c) - frameBottom (c);
+ wc->y = full_y + full_h / 2 + frameExtentTop (c);
+ wc->height = full_h - full_h / 2 - frameExtentTop (c) - frameExtentBottom (c);
break;
default:
break;
@@ -3218,12 +3218,12 @@ clientNewMaxSize (Client *c, XWindowChanges *wc, GdkRectangle *rect, tilePositio
switch (tile)
{
case TILE_LEFT:
- wc->x = full_x + frameLeft (c);
- wc->width = full_w / 2 - frameLeft (c) - frameRight (c);
+ wc->x = full_x + frameExtentLeft (c);
+ wc->width = full_w / 2 - frameExtentLeft (c) - frameExtentRight (c);
break;
case TILE_RIGHT:
- wc->x = full_x + full_w / 2 + frameLeft (c);
- wc->width = full_w - full_w / 2 - frameLeft (c) - frameRight (c);
+ wc->x = full_x + full_w / 2 + frameExtentLeft (c);
+ wc->width = full_w - full_w / 2 - frameExtentLeft (c) - frameExtentRight (c);
break;
default:
break;