diff options
author | Sven Gothel <[email protected]> | 2013-05-07 13:34:25 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-05-07 13:34:25 +0200 |
commit | 2344a21587b3053fc2f343087319ee094fe45442 (patch) | |
tree | 7b56bc5d9e979cfbf4849881e2d51b6d230e37fc | |
parent | 081177f2433be50e3b5d46385c2f0f3f96311ed8 (diff) |
NEWT MonitorMode: Refine 081177f2433be50e3b5d46385c2f0f3f96311ed8: Reduce EDT roundtrip when resize/positioning on MonitorMode changed ..
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 9ed4f9ad7..16d252ca3 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -1997,7 +1997,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer System.err.println("Window.monitorModeChanged: fit window "+rect+" into screen viewport "+viewport+ ", due to minimal intersection "+isect); } - setPosition(viewport.getX(), viewport.getY()); + definePosition(viewport.getX(), viewport.getY()); // set pos for setVisible(..) or createNative(..) - reduce EDT roundtrip setSize(viewport.getWidth(), viewport.getHeight()); } } |