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

ninetls pushed a 
commit to branch 
master
in repository panel-plugins/xfce4-statusnotifier-plugin.

commit 20c3664e6a1838f76549b0577833f89e278b7bf2
Author: Viktor Odintsev <nine...@xfce.org>
Date:   Fri Jul 21 15:15:42 2017 +0300

    Use ctrl + right click to always display plugin's menu
---
 panel-plugin/sn-button.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/panel-plugin/sn-button.c b/panel-plugin/sn-button.c
index 6dcf23a..56d2ba4 100644
--- a/panel-plugin/sn-button.c
+++ b/panel-plugin/sn-button.c
@@ -244,6 +244,12 @@ sn_button_button_press (GtkWidget      *widget,
 
   menu_is_primary = sn_config_get_menu_is_primary (button->config);
 
+  if (event->button == 3 && (event->state & GDK_CONTROL_MASK) == 
GDK_CONTROL_MASK)
+    {
+      /* ctrl + right click is used to show plugin's menu */
+      return FALSE;
+    }
+
   if (event->button == 3 && (button->menu_only || menu_is_primary))
     {
       /* menu is available by left click, so show the panel menu instead */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to