Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Pun2016-06-17 10:19:26 +0000
committerEric Williams2016-06-27 21:05:23 +0000
commitdc22e68f11f287a803f19c58505ae7441a5aa459 (patch)
tree14083ff276999574238bbeec82b91c20af563247 /bundles
parent539a6153646fdff2ffa011732f02d2ed7a11a108 (diff)
downloadeclipse.platform.swt-dc22e68f11f287a803f19c58505ae7441a5aa459.tar.gz
eclipse.platform.swt-dc22e68f11f287a803f19c58505ae7441a5aa459.tar.xz
eclipse.platform.swt-dc22e68f11f287a803f19c58505ae7441a5aa459.zip
Bug 496639 - GTK: dialog on top of full-screen shell is not shown
Any new shell windows that are set to modal will spawn above the full-screen window when setVisible() is called. Change-Id: I95cc1226decd4e51f994c12a08a2c7dca504baed Signed-off-by: Ian Pun <ipun@redhat.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index c0a2f21817..823de0a1b0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -2346,6 +2346,14 @@ public void setVisible (boolean visible) {
display.clearModal (this);
OS.gtk_window_set_modal (shellHandle, false);
}
+ /*
+ * When in full-screen mode, the OS will always consider it to be the top of the display stack unless it is a dialog.
+ * This fix will give modal windows dialog-type priority if the parent is in full-screen, allowing it to be popped
+ * up in front of the full-screen window.
+ */
+ if (parent!=null && parent.getShell().getFullScreen()) {
+ OS.gtk_window_set_type_hint(shellHandle, OS.GDK_WINDOW_TYPE_HINT_DIALOG);
+ }
} else {
updateModal ();
}

Back to the top