- wrapping failed with the cursor at the screen edge,
[blender-staging.git] / intern / ghost / intern / GHOST_SystemX11.cpp
index abf0b612f9a7b65a993c76b0faf7fa609309ace6..122e6c55241de5a03c51846ee4e6c9654aa3bd68 100644 (file)
@@ -399,9 +399,7 @@ GHOST_SystemX11::processEvent(XEvent *xe)
 
                                /* could also clamp to screen bounds
                                 * wrap with a window outside the view will fail atm  */
-
-                               bounds.wrapPoint(x_new, y_new, 1); /* offset of one incase blender is at screen bounds */
-
+                               bounds.wrapPoint(x_new, y_new, 2); /* offset of one incase blender is at screen bounds */
                                window->getCursorGrabAccum(x_accum, y_accum);
 
                                if(x_new != xme.x_root || y_new != xme.y_root) {