mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
Merge branch '4013_menubar_mouse_click'
* 4013_menubar_mouse_click: Ticket #4013: menubar: fix mouse click coordinate.
This commit is contained in:
commit
5990b06c9a
@ -692,7 +692,7 @@ menubar_get_menu_by_x_coord (const WMenuBar * menubar, int x)
|
||||
GList *menu;
|
||||
|
||||
for (i = 0, menu = menubar->menu;
|
||||
menu != NULL && x > MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
|
||||
menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
|
||||
;
|
||||
|
||||
/* Don't set the invalid value -1 */
|
||||
|
Loading…
Reference in New Issue
Block a user