From 2344a21587b3053fc2f343087319ee094fe45442 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 7 May 2013 13:34:25 +0200 Subject: NEWT MonitorMode: Refine 081177f2433be50e3b5d46385c2f0f3f96311ed8: Reduce EDT roundtrip when resize/positioning on MonitorMode changed .. --- src/newt/classes/jogamp/newt/WindowImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/classes') 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()); } } -- cgit v1.2.3