summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorPetros Koutsolampros <[email protected]>2014-02-24 16:37:01 +0000
committerPetros Koutsolampros <[email protected]>2014-02-25 11:24:55 +0000
commit78fcb8228d4a391054501aef16eb0462322ba39d (patch)
tree2aebee0ece345bc4cfbac6d467d6b34c05b4ec1e /src/newt/classes/jogamp
parentc67de337a8aaf52e36104c3f13e273aa19d21f1f (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.java3
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()));