diff options
author | Ian Pun | 2016-06-17 10:19:26 +0000 |
---|---|---|
committer | Eric Williams | 2016-06-27 21:05:23 +0000 |
commit | dc22e68f11f287a803f19c58505ae7441a5aa459 (patch) | |
tree | 14083ff276999574238bbeec82b91c20af563247 /bundles | |
parent | 539a6153646fdff2ffa011732f02d2ed7a11a108 (diff) | |
download | eclipse.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.java | 8 |
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 (); } |