From: Dana Jansens Date: Tue, 24 Jul 2007 18:09:08 +0000 (-0400) Subject: fix directional edge finding for xinerama, so that it can skip across to the next... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9aed91955448787ba8b6cfb92823362abb704e28;p=chaz%2Fopenbox fix directional edge finding for xinerama, so that it can skip across to the next monitor --- diff --git a/openbox/client.c b/openbox/client.c index 6d2b11f2..712df3a5 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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;