Disable continuous grab during tablet use (fixing tablet jerkiness issues)
authorDamien Plisson <damien.plisson@yahoo.fr>
Wed, 18 Nov 2009 16:54:33 +0000 (16:54 +0000)
committerDamien Plisson <damien.plisson@yahoo.fr>
Wed, 18 Nov 2009 16:54:33 +0000 (16:54 +0000)
source/blender/windowmanager/intern/wm_cursors.c

index df483f9013e2c9e7634756634a4d9c253bb2928c..9a8c3db0987c987b8a23ab63c1a7099bf055b1ea 100644 (file)
@@ -174,7 +174,7 @@ void WM_cursor_grab(wmWindow *win, int wrap, int hide, int *bounds)
        else if(wrap)   mode = GHOST_kGrabWrap;
 
        if ((G.f & G_DEBUG) == 0)
-               if(win)
+               if(win && (GHOST_GetTabletData(win->ghostwin)->Active == GHOST_kTabletModeNone))
                        GHOST_SetCursorGrab(win->ghostwin, mode, bounds);
 }