diff options
author | Sven Gothel <[email protected]> | 2010-07-17 03:45:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-07-17 03:45:19 +0200 |
commit | 7f1f12304f4c143b1656f79ee58311508fe00d1b (patch) | |
tree | 9a2585a6915320325e4c65cbe2f3ab4f52dbb3b7 /src/junit/com/jogamp | |
parent | 15d3ad1cba7ffa37f283129fd6319c5469dad510 (diff) |
Newt: X11 ICC window properties ; Still bugs with composite manager and Newt reparenting
Set _NET_WM_WINDOW_TYPE to specify decoration etc.
On KDE4 having compositing enabled the reparent window is sometimes
made invisible (UnmapWindow happened). FIXME.
Diffstat (limited to 'src/junit/com/jogamp')
-rw-r--r-- | src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java | 1 | ||||
-rw-r--r-- | src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java b/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java index 52c125998..53100eca7 100644 --- a/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java +++ b/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java @@ -108,6 +108,7 @@ public class TestGLWindows01NEWT { Assert.assertEquals(true,glWindow.isVisible()); Assert.assertEquals(true,glWindow.isNativeWindowValid()); while(glWindow.getTotalFrames()<1) { Thread.sleep(100); } + System.out.println("Frames for initial setVisible(true): "+glWindow.getTotalFrames()); Assert.assertTrue(0<glWindow.getTotalFrames()); // native expose .. // Assert.assertEquals(width,glWindow.getWidth()); // Assert.assertEquals(height,glWindow.getHeight()); diff --git a/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java b/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java index 66d5fb60c..68dfa2c06 100644 --- a/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java +++ b/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java @@ -185,15 +185,15 @@ public class TestParenting01NEWT { Thread.sleep(durationPerTest); switch(state) { case 0: + Assert.assertEquals(true, glWindow2.isVisible()); glWindow2.reparentWindow(glWindow1, null); - Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertEquals(glWindow1,glWindow2.getParentNativeWindow()); break; case 1: + Assert.assertEquals(true, glWindow2.isVisible()); glWindow2.reparentWindow(null, null); - Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertNull(glWindow2.getParentNativeWindow()); @@ -246,15 +246,15 @@ public class TestParenting01NEWT { Thread.sleep(durationPerTest); switch(state) { case 0: - glWindow2.reparentWindow(null, null); - Thread.sleep(100); // give some time for events to be propagated + Assert.assertEquals(true, glWindow2.isVisible()); + glWindow2.reparentWindow(null, null); Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertNull(glWindow2.getParentNativeWindow()); break; case 1: + Assert.assertEquals(true, glWindow2.isVisible()); glWindow2.reparentWindow(glWindow1, null); - Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertEquals(glWindow1,glWindow2.getParentNativeWindow()); |