[Xfce4-commits] [xfce/xfwm4] 03/03: Fix frame extents in tiling

noreply at xfce.org noreply at xfce.org
Tue Jan 20 09:25:03 CET 2015


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit f28b1a2c4c1bae00f1200f1d5e5e2352220497f0
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Jan 20 09:22:05 2015 +0100

    Fix frame extents in tiling
    
    This is a regression introduced when merging commit 918a7f2a
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/client.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/client.c b/src/client.c
index 6ad4f56..0e890cf 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;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list