Fix issue 463: Launcher icon accepts all mouse buttons

git-svn-id: http://tint2.googlecode.com/svn/trunk@687 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2015-02-05 12:21:56 +00:00 committed by mrovi9000@gmail.com
parent f527a2639b
commit 7b698e1fe1

View file

@ -517,7 +517,7 @@ void event_button_release (XEvent *e)
return;
}
if ( click_launcher(panel, e->xbutton.x, e->xbutton.y)) {
if (e->xbutton.button == 1 && click_launcher(panel, e->xbutton.x, e->xbutton.y)) {
LauncherIcon *icon = click_launcher_icon(panel, e->xbutton.x, e->xbutton.y);
if (icon) {
launcher_action(icon, e);