aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-04 14:46:28 +0200
committerSven Gothel <[email protected]>2013-07-04 14:46:28 +0200
commitfa6e868a72b8fb3de8c96afbd71ab4d3ad33f6b6 (patch)
tree69619b8e8bf3b99f2ea08f4169c9771d9ac0328d /src/test/com
parent2f3be40737c15547e8c7c9e19ccdb2b3b1e2ea56 (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')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java1
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java4
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());