diff options
author | Petros Koutsolampros <[email protected]> | 2014-02-24 16:37:01 +0000 |
---|---|---|
committer | Petros Koutsolampros <[email protected]> | 2014-02-25 11:24:55 +0000 |
commit | 78fcb8228d4a391054501aef16eb0462322ba39d (patch) | |
tree | 2aebee0ece345bc4cfbac6d467d6b34c05b4ec1e /src/newt/classes/jogamp | |
parent | c67de337a8aaf52e36104c3f13e273aa19d21f1f (diff) |
A more wholesome solution to the windowing problems in OSX. As described
in bug https://jogamp.org/bugzilla/show_bug.cgi?id=969
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 7f7cb61a9..5a5e0cc3d 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -2107,7 +2107,8 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer if(DEBUG_IMPLEMENTATION) { System.err.println("Window setPosition: "+getX()+"/"+getY()+" -> "+x+"/"+y+", fs "+fullscreen+", windowHandle "+toHexString(windowHandle)); } - if ( !isFullscreen() && ( getX() != x || getY() != y ) ) { + // let the window be resized as long as the parent is there + if ( !isFullscreen() && ( getX() != x || getY() != y || null != getParent()) ) { if(isNativeValid()) { // this.x/this.y will be set by sizeChanged, triggered by windowing event system reconfigureWindowImpl(x, y, getWidth(), getHeight(), getReconfigureFlags(0, isVisible())); |