diff options
author | Sven Gothel <[email protected]> | 2011-09-03 00:32:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-03 00:32:45 +0200 |
commit | 8dc31bcaa3ee3a2407d1960ab42d094cac642876 (patch) | |
tree | f18e02291b5ea67102e87a79ed861fb3032064ce /src/newt/classes/jogamp | |
parent | 002da0e057795c2f0679119c70f27ca914d9283b (diff) |
NEWT Window: Implicit setUndecorated(true) if Capabilities !isBackgroundOpaque()
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 55b735b4f..471262264 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -172,7 +172,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer window.parentWindowHandle = parentWindowHandle; window.screen = (ScreenImpl) screen; window.capsRequested = (CapabilitiesImmutable) caps.cloneMutable(); - window.setUndecorated(0!=parentWindowHandle); + window.setUndecorated(0!=parentWindowHandle || !caps.isBackgroundOpaque()); return window; } catch (Throwable t) { t.printStackTrace(); @@ -194,6 +194,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer WindowImpl window = (WindowImpl) ReflectionUtil.createInstance( windowClass, cstrArgumentTypes, cstrArguments ) ; window.screen = (ScreenImpl) screen; window.capsRequested = (CapabilitiesImmutable) caps.cloneMutable(); + window.setUndecorated(!caps.isBackgroundOpaque()); return window; } catch (Throwable t) { throw new NativeWindowException(t); |