From 9ad7f6d6ffe975dc0a10dac159b8de32773e1da1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 11 Aug 2015 02:43:08 +0200 Subject: Bug 1188: Fix regression on OSX setVisible: in-visibility never reached on child windows / Fix [Un}Resizable style - Fix regression on OSX setVisible: in-visibility never reached on child windows - Fix 'typo' while porting to bit-mask, i.e. '!=' -> '=='. - Fix [Un}Resizable style - Use NSResizableWindowMask only for !Undecorated and if STATE_MASK_RESIZABLE is set. --- src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java index deaba5f0c..31ef278ee 100644 --- a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java @@ -424,7 +424,7 @@ public class WindowDriver extends WindowImpl implements MutableSurface, DriverCl } if( 0 != ( CHANGE_MASK_VISIBILITY & flags) && - 0 != ( STATE_MASK_VISIBLE & flags) ) + 0 == ( STATE_MASK_VISIBLE & flags) ) { if ( !isOffscreenInstance ) { OSXUtil.RunOnMainThread(false, false, new Runnable() { @@ -704,10 +704,10 @@ public class WindowDriver extends WindowImpl implements MutableSurface, DriverCl if( 0 != ( STATE_MASK_UNDECORATED & flags) || offscreenInstance ) { ws = NSBorderlessWindowMask; } else { - ws = NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask; - } - if( 0 != ( STATE_MASK_RESIZABLE & flags) ) { - ws |= NSResizableWindowMask; + ws = NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask; + if( 0 != ( STATE_MASK_RESIZABLE & flags) ) { + ws |= NSResizableWindowMask; + } } windowStyle = ws; } -- cgit v1.2.3