aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-11 05:53:57 +0200
committerSven Gothel <[email protected]>2015-08-11 05:53:57 +0200
commitbb4e7c5d3e13d91810a7530d6ffa0a909fdfc233 (patch)
treee9b7f2c504c8d7d7e5c59bd43a09fdc4553c996c /src/newt
parent858ea4570f124aae2d302a78161c72f7ac41e5b3 (diff)
NEWT OSX WindowDriver: Must wait for resize on main-thread (Related to Bug 1188)
If not waiting for resize on main-thread, corruption may happen at continued rendering. This has been experienced w/ maximize-horizontally (Bug 1188).
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java
index f54b8b2c6..0d144775a 100644
--- a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java
@@ -498,7 +498,7 @@ public class WindowDriver extends WindowImpl implements MutableSurface, DriverCl
} else {
if( width>0 && height>0 ) {
if( !isOffscreenInstance ) {
- OSXUtil.RunOnMainThread(false, false, new Runnable() {
+ OSXUtil.RunOnMainThread(true, false, new Runnable() {
@Override
public void run() {
setWindowClientTopLeftPointAndSize0(getWindowHandle(),