[Xfce4-commits] [xfce/xfwm4] 01/01: Improve auto-maximize fn to maximize windows which size is equal to the available size

noreply at xfce.org noreply at xfce.org
Fri Jul 25 19:56:19 CEST 2014


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

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

commit 4aee39d8059e3e7b9ccfcb3d3f22ec717ddffe43
Author: Cédric Leporcq <cedl38 at gmail.com>
Date:   Sun Dec 8 21:38:11 2013 +0100

    Improve auto-maximize fn to maximize windows which size is equal to the available size
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
 src/placement.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/placement.c b/src/placement.c
index 732f01d..1aba248 100644
--- a/src/placement.c
+++ b/src/placement.c
@@ -514,19 +514,19 @@ clientAutoMaximize (Client * c, int full_w, int full_h)
     }
 
     if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ) &&
-        (frameWidth (c) > full_w))
+        (frameWidth (c) >= full_w))
     {
         TRACE ("The application \"%s\" has requested a window width "
-               "(%u) larger than the actual width available in the workspace (%u), "
+               "(%u) equal or larger than the actual width available in the workspace (%u), "
                "the window will be maximized horizontally.", c->name, frameWidth (c), full_w);
         FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ);
     }
 
     if (!FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED_VERT) &&
-        (frameHeight (c) > full_h))
+        (frameHeight (c) >= full_h))
     {
         TRACE ("The application \"%s\" has requested a window height "
-               "(%u) larger than the actual height available in the workspace (%u), "
+               "(%u) equal or larger than the actual height available in the workspace (%u), "
                "the window will be maximized vertically.", c->name, frameHeight (c), full_h);
         FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_VERT);
     }

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


More information about the Xfce4-commits mailing list