diff options
author | Sven Gothel <[email protected]> | 2014-02-25 17:08:02 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-25 17:08:02 +0100 |
commit | 0e8f592a67ee43238eff4074f937d9cc4dc8dd11 (patch) | |
tree | a1b930635975405717dd71779da9ed386e6b98d0 /src/newt/classes/jogamp | |
parent | 083e430a76586347e87f4e2a25d92ac00cdcc61a (diff) | |
parent | 78fcb8228d4a391054501aef16eb0462322ba39d (diff) |
Merge remote-tracking branch 'petros-koutsolampros/master'
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())); |