author | sangheki |
Thu, 24 Mar 2016 23:07:06 -0700 | |
changeset 37194 | 96cc74bd293b |
parent 32286 | 5ffa8d8b4a2d |
child 39541 | 2d0b64d48027 |
permissions | -rw-r--r-- |
17147
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
1 |
/* |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
4 |
* |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
8 |
* |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
13 |
* accompanied this code). |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
14 |
* |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
18 |
* |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
21 |
* questions. |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
22 |
*/ |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
23 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
24 |
/* |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
25 |
* @test |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
26 |
* @bug 8012586 |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
27 |
* @summary verify that modal dialog will appeared above fullscreen window under Metacity WM. |
32286
5ffa8d8b4a2d
8132958: [TEST_BUG] Part 1: update client tests failing after changes in setAccessible(true) routine
yan
parents:
17685
diff
changeset
|
28 |
* @requires (os.name == "linux" | os.name == "solaris") |
5ffa8d8b4a2d
8132958: [TEST_BUG] Part 1: update client tests failing after changes in setAccessible(true) routine
yan
parents:
17685
diff
changeset
|
29 |
* @modules java.desktop/sun.awt.X11 |
17685
95517c002a75
8014726: TEST_BUG: java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java should be modified
serb
parents:
17147
diff
changeset
|
30 |
* @library ../../regtesthelpers |
95517c002a75
8014726: TEST_BUG: java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java should be modified
serb
parents:
17147
diff
changeset
|
31 |
* @build Util |
17147
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
32 |
* @run main FullscreenDialogModality |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
33 |
* @run main/othervm FullscreenDialogModality |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
34 |
* @author vkravets |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
35 |
*/ |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
36 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
37 |
import test.java.awt.regtesthelpers.Util; |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
38 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
39 |
import java.awt.*; |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
40 |
import java.lang.reflect.InvocationTargetException; |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
41 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
42 |
public class FullscreenDialogModality extends Frame { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
43 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
44 |
static Robot robot = null; |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
45 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
46 |
public void enterFS() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
47 |
GraphicsDevice gd = getGraphicsConfiguration().getDevice(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
48 |
final boolean fs = gd.isFullScreenSupported(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
49 |
System.out.println("FullscreenSupported: " + (fs ? "yes" : "no")); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
50 |
gd.setFullScreenWindow(this); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
51 |
try { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
52 |
// Give the system time to set the FS window and display it |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
53 |
// properly |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
54 |
Thread.sleep(2000); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
55 |
} catch (Exception e) {} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
56 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
57 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
58 |
public void exitFS() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
59 |
GraphicsDevice gd = getGraphicsConfiguration().getDevice(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
60 |
// reset window |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
61 |
gd.setFullScreenWindow(null); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
62 |
try { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
63 |
// Give the system time to set the FS window and display it |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
64 |
// properly |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
65 |
Thread.sleep(2000); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
66 |
} catch (Exception e) {} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
67 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
68 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
69 |
public void checkDialogModality() throws InvocationTargetException, InterruptedException { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
70 |
// Dialog |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
71 |
final Dialog d = new Dialog(FullscreenDialogModality.this, "Modal dialog", Dialog.ModalityType.APPLICATION_MODAL); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
72 |
d.setBounds(500, 500, 160, 160); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
73 |
d.setModal(true); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
74 |
d.setBackground(Color.red); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
75 |
EventQueue.invokeLater(new Runnable() |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
76 |
{ |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
77 |
public void run() |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
78 |
{ |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
79 |
d.setVisible(true); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
80 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
81 |
}); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
82 |
// Wait until the dialog is shown |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
83 |
EventQueue.invokeLater(new Runnable() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
84 |
public void run() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
85 |
// Empty |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
86 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
87 |
}); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
88 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
89 |
Util.waitForIdle(robot); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
90 |
try { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
91 |
//Check color |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
92 |
Point checkPoint = new Point(d.getX() + d.getWidth() / 2, d.getY() + d.getHeight() / 2); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
93 |
Color actual = robot.getPixelColor(checkPoint.x, checkPoint.y); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
94 |
System.out.println("Color = " + actual); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
95 |
if (actual.getRGB() == Color.GREEN.getRGB()) { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
96 |
throw new RuntimeException("Test FAILED: Modal dialog shown below fullscreen window"); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
97 |
} else if (actual.getRGB() == Color.RED.getRGB()) { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
98 |
System.out.println("Test PASSED: Modal dialog shown above fullscreen window"); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
99 |
} else { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
100 |
System.out.println("pixelColor " + |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
101 |
Integer.toHexString(actual.getRGB()) + |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
102 |
" at coordinates (" + checkPoint.x + ", " + checkPoint.y + ")"); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
103 |
throw new RuntimeException("Test FAILED: Unexpected behavior"); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
104 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
105 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
106 |
robot.delay(2000); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
107 |
Util.waitForIdle(robot); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
108 |
} finally { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
109 |
d.dispose(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
110 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
111 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
112 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
113 |
public static void main(String args[]) throws InvocationTargetException, InterruptedException { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
114 |
if (Util.getWMID() != Util.METACITY_WM) { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
115 |
System.out.println("This test is only useful on Metacity"); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
116 |
return; |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
117 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
118 |
robot = Util.createRobot(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
119 |
Util.waitForIdle(robot); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
120 |
final FullscreenDialogModality frame = new FullscreenDialogModality(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
121 |
frame.setUndecorated(true); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
122 |
frame.setBackground(Color.green); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
123 |
frame.setSize(500, 500); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
124 |
frame.setVisible(true); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
125 |
try { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
126 |
robot.delay(100); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
127 |
Util.waitForIdle(robot); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
128 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
129 |
EventQueue.invokeAndWait(new Runnable() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
130 |
public void run() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
131 |
frame.enterFS(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
132 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
133 |
}); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
134 |
robot.delay(200); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
135 |
Util.waitForIdle(robot); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
136 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
137 |
frame.checkDialogModality(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
138 |
|
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
139 |
EventQueue.invokeAndWait(new Runnable() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
140 |
public void run() { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
141 |
frame.exitFS(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
142 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
143 |
}); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
144 |
} finally { |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
145 |
frame.dispose(); |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
146 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
147 |
} |
e1cd5c92e81c
8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff
changeset
|
148 |
} |