diff options
author | Sven Gothel <[email protected]> | 2020-03-05 19:20:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-03-05 19:20:19 +0100 |
commit | 3e141416ea6c85c14dc622dae57f071d5fd0ff4f (patch) | |
tree | b59b7b782cdf768ba28939c88159e02eafb98f5a /src/newt/classes/jogamp | |
parent | 36ca7245653b1a0897f2070b9acbe0f0898f5949 (diff) |
Bug 1398: Expose NativeSurface implementation's RecursiveLock if utilized
This prepares proper release of the acquired NativeSurface lock to cure the missing CGLContext lock, see followup commit.
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 8ef137b34..3fa648686 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -543,6 +543,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer void clearButton() { lastButtonPressTime = 0; } + @Override public String toString() { return "PState0[inside "+insideSurface+", exitSent "+exitSent+", lastPress "+lastButtonPressTime+", dragging "+dragging+"]"; } } private final PointerState0 pState0 = new PointerState0(); @@ -577,6 +578,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer } return null; } + @Override public final String toString() { return "PState1[inside "+insideSurface+", exitSent "+exitSent+", lastPress "+lastButtonPressTime+ ", pressed [button "+buttonPressed+", mask "+buttonPressedMask+", dragging "+dragging+", clickCount "+lastButtonClickCount+"]"; } } @@ -1115,6 +1117,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer return windowLock.getOwner(); } + @Override public final RecursiveLock getLock() { return windowLock; } @@ -2487,6 +2490,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer if( this.pointerIcon != piImpl ) { if( isNativeValid() ) { runOnEDTIfAvail(true, new Runnable() { + @Override public void run() { setPointerIconIntern(piImpl); } } ); |