From b4e03a5168f62223369a483924eb2491250c6f95 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 19 Dec 2013 12:47:52 +0100 Subject: Bug 924: Ignore reparent when in fullscreen - otherwise may confuse WM --- src/newt/classes/jogamp/newt/WindowImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); -- cgit v1.2.3