diff options
author | Sven Gothel <[email protected]> | 2014-02-25 17:17:31 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-25 17:17:31 +0100 |
commit | 64bdefac9191334ace292683a6a7c4274bc3f72b (patch) | |
tree | d388d1081c114d181004caec12ff424395cae5af /src/newt/classes/jogamp | |
parent | c3621221b9a563495b4f54fe60e18e8db8cc57fb (diff) | |
parent | c2e6233c57f47c067dbb24f4a6a127fbaedf7a08 (diff) |
Merge branch 'master' into 2.2-train
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..9593d4faa 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 positioned if !fullscreen and position changed or being a child window. + 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())); |