[Xfce4-commits] [apps/xfce4-terminal] 01/01: Unmaximize drop-down window when hiding it

noreply at xfce.org noreply at xfce.org
Mon Jul 8 17:45:24 CEST 2019


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

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit 72c932498c6b14cd983a8cf65c8c90a43e8e2132
Author: Igor <f2404 at yandex.ru>
Date:   Mon Jul 8 11:43:48 2019 -0400

    Unmaximize drop-down window when hiding it
    
    This seems to help xfwm4; otherwise, it won't be able to unmaximize the window
    once it's shown again.
    
    Fixes bug #15681
---
 terminal/terminal-window-dropdown.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c
index f60e1a8..791a53c 100644
--- a/terminal/terminal-window-dropdown.c
+++ b/terminal/terminal-window-dropdown.c
@@ -752,6 +752,9 @@ terminal_window_dropdown_hide (TerminalWindowDropdown *dropdown)
     }
   else
     {
+      /* it seems that xfwm4 wants the window unmaximized when it's hidden (bug #15681) */
+      if (gtk_window_is_maximized (GTK_WINDOW (dropdown)))
+        gtk_window_unmaximize (GTK_WINDOW (dropdown));
       gtk_widget_hide (GTK_WIDGET (dropdown));
     }
 }

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


More information about the Xfce4-commits mailing list