Improved fullscreen pointer handling

This commit is contained in:
Elias Naur 2004-12-11 08:10:44 +00:00
parent 270380194f
commit 644bbc9ac0
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ static void setCursorPos(int x, int y) {
accum_dy += dy;
last_x = x;
last_y = y;
if (pointer_grabbed) {
if (shouldGrab()) {
putMouseEventWithCoords(-1, 0, dx, dy, 0);
} else {
putMouseEventWithCoords(-1, 0, x, y, 0);