JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add +1 adfter a cyclescreen to give root_to_region a better chance of
authorMarco Peereboom <marco@conformal.com>
Fri, 2 Oct 2009 20:00:20 +0000 (20:00 +0000)
committerMarco Peereboom <marco@conformal.com>
Fri, 2 Oct 2009 20:00:20 +0000 (20:00 +0000)
working.

scrotwm.c

index f865183..cbba249 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -1365,8 +1365,8 @@ cyclescr(struct swm_region *r, union arg *args)
        };
        unfocus_all();
        XSetInputFocus(display, PointerRoot, RevertToPointerRoot, CurrentTime);
-       XWarpPointer(display, None, rr->s[i].root, 0, 0, 0, 0, rr->g.x,
-           rr->g.y + bar_enabled ? bar_height : 0);
+       XWarpPointer(display, None, rr->s[i].root, 0, 0, 0, 0, rr->g.x + 1,
+           rr->g.y + bar_enabled + 1 ? bar_height : 0);
 }
 
 void