[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix "Always keep window on top" setting that was ignored

noreply at xfce.org noreply at xfce.org
Tue Oct 4 13:38:03 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 03ee40fc30c88b5ab6fc7e8632d6831677663adb
Author: Igor <f2404 at yandex.ru>
Date:   Tue Oct 4 14:35:12 2016 +0300

    Fix "Always keep window on top" setting that was ignored
    
    Once a window was hidden and shown, the setting got reset to its default
    value: TRUE.
---
 terminal/terminal-window-dropdown.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c
index ca068b9..58085f1 100644
--- a/terminal/terminal-window-dropdown.c
+++ b/terminal/terminal-window-dropdown.c
@@ -692,6 +692,7 @@ terminal_window_dropdown_show (TerminalWindowDropdown *dropdown,
   gint               x_dest, y_dest;
   GtkRequisition     req1;
   gboolean           move_to_active;
+  gboolean           keep_above;
   gboolean           visible;
   gint               vbox_h;
   TerminalDirection  old_animation_dir = ANIMATION_DIR_NONE;
@@ -785,6 +786,11 @@ terminal_window_dropdown_show (TerminalWindowDropdown *dropdown,
     }
   else
     {
+      g_object_get (G_OBJECT (window->preferences),
+                    "dropdown-keep-above", &keep_above,
+                    NULL);
+      gtk_window_set_keep_above (GTK_WINDOW (dropdown), keep_above);
+
       /* make sure all the content fits */
       gtk_window_resize (GTK_WINDOW (dropdown), w, h);
     }

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


More information about the Xfce4-commits mailing list