[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/03: Fix redundant hiding of menu.

noreply at xfce.org noreply at xfce.org
Sun Jul 8 11:52:58 CEST 2018


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

g   o   t   t   c   o   d   e       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 panel-plugins/xfce4-whiskermenu-plugin.

commit c610368d8b4850d7448758faf123a26116539c39
Author: Graeme Gott <graeme at gottcode.org>
Date:   Thu Jul 5 10:45:06 2018 -0400

    Fix redundant hiding of menu.
---
 panel-plugin/plugin.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index 5cf28a0..a9675ed 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -300,7 +300,10 @@ void Plugin::button_toggled(GtkToggleButton* button)
 {
 	if (gtk_toggle_button_get_active(button) == false)
 	{
-		m_window->hide();
+		if (gtk_widget_get_visible(m_window->get_widget()))
+		{
+			m_window->hide();
+		}
 		xfce_panel_plugin_block_autohide(m_plugin, false);
 	}
 	else

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


More information about the Xfce4-commits mailing list