[Xfce4-commits] [panel-plugins/xfce4-statusnotifier-plugin] 01/01: Use ctrl + right click to always display plugin's menu
noreply at xfce.org
noreply at xfce.org
Fri Jul 21 14:15:58 CEST 2017
This is an automated email from the git hooks/post-receive script.
n i n e t l s 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-statusnotifier-plugin.
commit 20c3664e6a1838f76549b0577833f89e278b7bf2
Author: Viktor Odintsev <ninetls at 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.
More information about the Xfce4-commits
mailing list