From 90a5fbff60f2c2d8dc873f21f8a7b68779729a21 Mon Sep 17 00:00:00 2001 From: Konstantin Pugin Date: Tue, 28 Apr 2015 23:48:17 +0600 Subject: [PATCH] Less restrictive button-press-event --- applets/drawing/monitors/monitors.vala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applets/drawing/monitors/monitors.vala b/applets/drawing/monitors/monitors.vala index b37e5f71..bb51652f 100644 --- a/applets/drawing/monitors/monitors.vala +++ b/applets/drawing/monitors/monitors.vala @@ -124,8 +124,12 @@ internal class Monitor return false; }); da.button_press_event.connect((e)=>{ - MenuMaker.activate_menu_launch_command(null,plugin.settings.get_value(Monitors.ACTION)); - return true; + if (e.button == 1) + { + MenuMaker.activate_menu_launch_command(null,plugin.settings.get_value(Monitors.ACTION)); + return true; + } + return false; }); } ~Monitor()