diff options
author | Sven Gothel <[email protected]> | 2013-07-04 14:46:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-07-04 14:46:28 +0200 |
commit | fa6e868a72b8fb3de8c96afbd71ab4d3ad33f6b6 (patch) | |
tree | 69619b8e8bf3b99f2ea08f4169c9771d9ac0328d /src/test/com/jogamp | |
parent | 2f3be40737c15547e8c7c9e19ccdb2b3b1e2ea56 (diff) |
Revisit Bug 770 and Bug 771: Only use FLAG_IS_FULLSCREEN_SPAN if required; At MonitoMode change, reset fullscreen if FLAG_IS_FULLSCREEN_SPAN is supported.
- Bug 770: Only use FLAG_IS_FULLSCREEN_SPAN if required
- If X11 WindowDriver _and_ virtual-screen-size > fullscreenViewport,
- else we still use _NET_WM_STATE_FULLSCREEN on X11!
- Bug 771: At MonitoMode change, reset fullscreen if FLAG_IS_FULLSCREEN_SPAN is supported
- Since we may still use _NET_WM_STATE_FULLSCREEN on X11:
- Pause fullscreen at monitorModeChangeNotify(..)
- Resume fullscreen at monitorModeChanged(..)
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java | 1 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java index afb26d75c..c480d1759 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java @@ -328,6 +328,7 @@ public class TestScreenMode01dNEWT extends UITestCase { System.err.println("[0] set FS pre X: "+window.isFullscreen()); } + Thread.sleep(waitTimeShort); System.err.println("[0] set current: "+monitorMode); monitor.setCurrentMode(monitorMode); diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java index f261a24a5..f10477333 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java @@ -138,6 +138,8 @@ public class TestScreenMode02aNEWT extends UITestCase { final MonitorMode mmOrig = monitor.getOriginalMode(); Assert.assertNotNull(mmOrig); if(changeMode) { + Thread.sleep(waitTimeShort); + List<MonitorMode> monitorModes = monitor.getSupportedModes(); if(monitorModes.size()==1) { // no support .. @@ -196,6 +198,8 @@ public class TestScreenMode02aNEWT extends UITestCase { } if(changeMode) { + Thread.sleep(waitTimeShort); + // manual restore! monitor.setCurrentMode(mmOrig); Assert.assertFalse(monitor.isModeChangedByUs()); |