Mac OS X: Don't hide mouse mouse when already hidden (because the cursor state is counted)

This commit is contained in:
Elias Naur 2004-11-15 15:28:53 +00:00
parent 26ce1fecae
commit f65ae73d47
2 changed files with 13 additions and 7 deletions

View file

@ -270,9 +270,9 @@ final class MacOSXDisplay implements DisplayImplementation {
}
public void grabMouse(boolean grab) {
nGrabMouse(grab);
mouse_queue.setGrabbed(grab);
warpCursor();
nGrabMouse(grab);
}
private native void nWarpCursor(int x, int y);
@ -294,7 +294,7 @@ final class MacOSXDisplay implements DisplayImplementation {
with another setCursor.
2. When the cursor is moving in the top pixel row (y = 0 in AWT coordinates) in fullscreen
mode, no mouse moved events are reported, even though mouse pressed/released and dragged
are reported
events are reported
*/
return 0;
}