diff options
author | Sven Gothel <[email protected]> | 2010-07-17 03:45:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-07-17 03:45:19 +0200 |
commit | 7f1f12304f4c143b1656f79ee58311508fe00d1b (patch) | |
tree | 9a2585a6915320325e4c65cbe2f3ab4f52dbb3b7 /src/newt/classes | |
parent | 15d3ad1cba7ffa37f283129fd6319c5469dad510 (diff) |
Newt: X11 ICC window properties ; Still bugs with composite manager and Newt reparenting
Set _NET_WM_WINDOW_TYPE to specify decoration etc.
On KDE4 having compositing enabled the reparent window is sometimes
made invisible (UnmapWindow happened). FIXME.
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/Window.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java index 9c724314e..0ec8a109b 100644 --- a/src/newt/classes/com/jogamp/newt/Window.java +++ b/src/newt/classes/com/jogamp/newt/Window.java @@ -674,12 +674,11 @@ public abstract class Window implements NativeWindow, NEWTEventConsumer if( 0 != windowHandle ) { destroy(false); } - } else { - if(wasVisible) { - Window.this.visible = true; - setVisibleImpl(true); - getScreen().getDisplay().dispatchMessages(); // status up2date - } + } else if(wasVisible) { + Window.this.visible = true; + setVisibleImpl(true); + requestFocusImpl(); + getScreen().getDisplay().dispatchMessages(); // status up2date } } @@ -1461,7 +1460,9 @@ public abstract class Window implements NativeWindow, NEWTEventConsumer protected void visibleChanged(boolean visible) { if(DEBUG_IMPLEMENTATION) { - System.out.println("Window.visibleChanged: "+this.visible+" -> "+visible); + System.out.println("Window.visibleChanged ("+getThreadName()+"): "+this.visible+" -> "+visible+" - windowHandle "+toHexString(windowHandle)+" parentWindowHandle "+toHexString(parentWindowHandle)); + // Exception e = new Exception("Window.visibleChanged ("+getThreadName()+"): "+this.visible+" -> "+visible+" - windowHandle "+toHexString(windowHandle)+" parentWindowHandle "+toHexString(parentWindowHandle)); + // e.printStackTrace(); } this.visible = visible ; } |