]> Dogcows Code - chaz/openbox/blobdiff - openbox/moveresize.c
Prevent screen edge warping from switching rapidly
[chaz/openbox] / openbox / moveresize.c
index 3a98db37b8442849301e412f759a69f8d9e8f1fe..d700da9ebd66a0ecacb8d10c4e15bc0a2b75c4f2 100644 (file)
@@ -583,16 +583,16 @@ static void edge_warp_move_ptr(void)
 
     switch (edge_warp_dir) {
        case OB_DIRECTION_NORTH:
-           y = a->height - 1;
+           y = a->height - 2;
            break;
        case OB_DIRECTION_EAST:
-           x = a->x;
+           x = a->x + 1;
            break;
        case OB_DIRECTION_SOUTH:
-           y = a->y;
+           y = a->y + 1;
            break;
        case OB_DIRECTION_WEST:
-           x = a->width - 1;
+           x = a->width - 2;
            break;
        default:
         g_assert_not_reached();
This page took 0.022419 seconds and 4 git commands to generate.