Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-12-09 07:51:35 +0300
committerMartin Poirier <theeth@yahoo.com>2009-12-09 07:51:35 +0300
commitbc795694198a700aeb6283741da2a4ed515a70c3 (patch)
tree2e7bcbf523f507d395023015fb05fd749e04a6a8 /source/blender/windowmanager/intern/wm_cursors.c
parent1c47b3acb6fa03ea13f9a1f545a750439dcd68ab (diff)
grabcursor attribute stores full grab mode so we can better differentiate when it needs to wrap around cursor draw.
Also add cocoa exception to wm_get_cursor_position (this should be fixed at the ghost level)
Diffstat (limited to 'source/blender/windowmanager/intern/wm_cursors.c')
-rw-r--r--source/blender/windowmanager/intern/wm_cursors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c
index cec5886014a..dfcc1fcd227 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -181,7 +181,7 @@ void WM_cursor_grab(wmWindow *win, int wrap, int hide, int *bounds)
else if (tabletdata->Active == GHOST_kTabletModeNone)
GHOST_SetCursorGrab(win->ghostwin, mode, bounds);
- win->grabcursor = 1;
+ win->grabcursor = mode;
}
}
}
@@ -191,7 +191,7 @@ void WM_cursor_ungrab(wmWindow *win)
if ((G.f & G_DEBUG) == 0) {
if(win && win->ghostwin) {
GHOST_SetCursorGrab(win->ghostwin, GHOST_kGrabDisable, NULL);
- win->grabcursor = 0;
+ win->grabcursor = GHOST_kGrabDisable;
}
}
}