From fa6e868a72b8fb3de8c96afbd71ab4d3ad33f6b6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 Jul 2013 14:46:28 +0200 Subject: 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(..) --- .../com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java | 1 + .../com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src/test/com') 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 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()); -- cgit v1.2.3