aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-12-19 12:47:52 +0100
committerSven Gothel <[email protected]>2013-12-19 12:47:52 +0100
commitb4e03a5168f62223369a483924eb2491250c6f95 (patch)
tree7441a7cbcc0f6a603833548181cff085a90d2850
parentc9fcc8cd510abc0cbebb872dc3e457327655e778 (diff)
Bug 924: Ignore reparent when in fullscreen - otherwise may confuse WM
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index ed7dd5600..29d3b9ee2 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -1211,6 +1211,14 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
@Override
public final void run() {
+ if( WindowImpl.this.isFullscreen() ) {
+ // Bug 924: Ignore reparent when in fullscreen - otherwise may confuse WM
+ if( DEBUG_IMPLEMENTATION) {
+ System.err.println("Window.reparent: NOP (in fullscreen, "+getThreadName()+") valid "+isNativeValid()+
+ ", windowHandle "+toHexString(windowHandle)+" parentWindowHandle "+toHexString(parentWindowHandle));
+ }
+ return;
+ }
boolean animatorPaused = false;
if(null!=lifecycleHook) {
animatorPaused = lifecycleHook.pauseRenderingAction();