[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 112/473: Fix menu not hiding when configuration dialog is clicked.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:54:42 CET 2015


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 5532d21325374198a978046de10350c323721246
Author: Graeme Gott <graeme at gottcode.org>
Date:   Mon Jul 15 08:47:03 2013 -0400

    Fix menu not hiding when configuration dialog is clicked.
---
 src/menu.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/menu.cpp b/src/menu.cpp
index d167fe4..45ff615 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -533,7 +533,8 @@ bool Menu::on_leave_notify_event(GdkEventCrossing* event)
 bool Menu::on_button_press_event(GdkEventButton* event)
 {
 	// Hide menu if user clicks outside
-	if ((event->x < 0) || (event->x > m_geometry.width) || (event->y < 0) || (event->y > m_geometry.height))
+	if ((event->x_root <= m_geometry.x) || (event->x_root >= m_geometry.x + m_geometry.width)
+			|| (event->y_root <= m_geometry.y) || (event->y_root >= m_geometry.y + m_geometry.height))
 	{
 		hide();
 	}

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


More information about the Xfce4-commits mailing list