only button 1 can use menu items

This commit is contained in:
Dana Jansens 2003-05-22 21:33:44 +00:00
parent f249e01616
commit d3980aa459

View file

@ -931,6 +931,7 @@ static void event_handle_menu(Menu *menu, Client *client, XEvent *e)
/* grab_pointer_window(FALSE, None, menu->frame);*/
if (e->xbutton.button == 1) {
entry = menu_find_entry(menu, e->xbutton.window);
if (entry) {
int junk;
@ -945,6 +946,7 @@ static void event_handle_menu(Menu *menu, Client *client, XEvent *e)
menu_entry_fire(entry);
}
}
}
break;
case EnterNotify: