Skip to content

Commit

Permalink
Less restrictive button-press-event
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed Apr 28, 2015
1 parent 8f22d11 commit 90a5fbf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions applets/drawing/monitors/monitors.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 90a5fbf

Please sign in to comment.