Mac OS X: Synchronized access to grabbed state
This commit is contained in:
parent
710d56fe55
commit
52b5958191
|
@ -62,6 +62,10 @@ final class MacOSXMouseEventQueue extends MouseEventQueue {
|
||||||
public void setGrabbed(boolean grab) {
|
public void setGrabbed(boolean grab) {
|
||||||
super.setGrabbed(grab);
|
super.setGrabbed(grab);
|
||||||
warpCursor();
|
warpCursor();
|
||||||
|
grabMouse(grab);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static synchronized void grabMouse(boolean grab) {
|
||||||
if (is_grabbed != grab) {
|
if (is_grabbed != grab) {
|
||||||
is_grabbed = grab;
|
is_grabbed = grab;
|
||||||
nGrabMouse(grab);
|
nGrabMouse(grab);
|
||||||
|
|
Loading…
Reference in New Issue