]> Dogcows Code - chaz/openbox/commitdiff
fix directional edge finding for xinerama, so that it can skip across to the next...
authorDana Jansens <danakj@orodu.net>
Tue, 24 Jul 2007 18:09:08 +0000 (14:09 -0400)
committerMikael Magnusson <mikachu@comhem.se>
Thu, 26 Jul 2007 08:48:05 +0000 (10:48 +0200)
openbox/client.c

index 6d2b11f26ea4c5218ad1bfdab02bd924675f9a35..712df3a579768f8a0664fc727717e7097094cbe7 100644 (file)
@@ -3978,25 +3978,25 @@ void client_find_edge_directional(ObClient *self, ObDirection dir,
 
     switch(dir) {
     case OB_DIRECTION_NORTH:
-        if (my_head >= RECT_TOP(*mon))
+        if (my_head >= RECT_TOP(*mon) + 1)
             edge = RECT_TOP(*mon) - 1;
         else
             edge = RECT_TOP(*a) - 1;
         break;
     case OB_DIRECTION_SOUTH:
-        if (my_head <= RECT_BOTTOM(*mon))
+        if (my_head <= RECT_BOTTOM(*mon) - 1)
             edge = RECT_BOTTOM(*mon) + 1;
         else
             edge = RECT_BOTTOM(*a) + 1;
         break;
     case OB_DIRECTION_EAST:
-        if (my_head <= RECT_RIGHT(*mon))
+        if (my_head <= RECT_RIGHT(*mon) - 1)
             edge = RECT_RIGHT(*mon) + 1;
         else
             edge = RECT_RIGHT(*a) + 1;
         break;
     case OB_DIRECTION_WEST:
-        if (my_head >= RECT_LEFT(*mon))
+        if (my_head >= RECT_LEFT(*mon) + 1)
             edge = RECT_LEFT(*mon) - 1;
         else
             edge = RECT_LEFT(*a) - 1;
This page took 0.025795 seconds and 4 git commands to generate.