[Xfce4-commits] [xfce/xfwm4] 01/01: Fix smart placement.

noreply at xfce.org noreply at xfce.org
Sun Mar 8 22:05:24 CET 2015


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

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

commit adf918d111d60e5aa3591b38ad920354b74486e8
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Mar 8 22:04:35 2015 +0100

    Fix smart placement.
    
    The loop was not entirely finished, therefore it did not make
    use of the bottom/left side of the screen.
---
 src/placement.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/placement.c b/src/placement.c
index 2476892..7b0ca22 100644
--- a/src/placement.c
+++ b/src/placement.c
@@ -707,7 +707,7 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
                 test_x++;
             }
         }
-        while (test_x < xmax);
+        while (test_x <= xmax);
 
         if (G_LIKELY (next_test_y != G_MAXINT))
         {
@@ -723,7 +723,7 @@ smartPlacement (Client * c, int full_x, int full_y, int full_w, int full_h)
             test_y++;
         }
     }
-    while (test_y < ymax);
+    while (test_y <= ymax);
 
     found_best:
 

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


More information about the Xfce4-commits mailing list