Merge branch '4013_menubar_mouse_click'

* 4013_menubar_mouse_click:
  Ticket #4013: menubar: fix mouse click coordinate.
This commit is contained in:
Andrew Borodin 2019-09-08 11:43:47 +03:00
commit 5990b06c9a

View File

@ -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 */