[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix Preferences window hidden in fullscreen mode

noreply at xfce.org noreply at xfce.org
Thu Aug 11 15:11:11 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 8809c8195595b1c8f5d8c6c6cf4c9234654de78d
Author: Igor <f2404 at yandex.ru>
Date:   Thu Aug 11 16:11:05 2016 +0300

    Fix Preferences window hidden in fullscreen mode
---
 terminal/terminal-window.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 6603692..2b65432 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -1528,9 +1528,14 @@ terminal_window_action_prefs (GtkAction      *action,
 
   if (window->preferences_dialog != NULL)
     {
-      gtk_window_set_transient_for (GTK_WINDOW (window->preferences_dialog), GTK_WINDOW (window));
+      /* do not set this in fullscreen mode as preferences would be hidden behind the terminal window */
+      if (!gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (window->action_fullscreen)))
+        gtk_window_set_transient_for (GTK_WINDOW (window->preferences_dialog), GTK_WINDOW (window));
+
+      /* move preferences on top in dropdown mode */
       if (window->drop_down)
         gtk_window_set_keep_above (GTK_WINDOW (window->preferences_dialog), TRUE);
+
       gtk_window_present (GTK_WINDOW (window->preferences_dialog));
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list