mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Convert menu to node_descriptors
This commit is contained in:
parent
eb7645d0e0
commit
8444ba4075
6 changed files with 75 additions and 68 deletions
|
|
@ -233,7 +233,7 @@ process_cursor_motion(struct server *server, uint32_t time)
|
|||
}
|
||||
|
||||
if (view_area == LAB_SSD_MENU) {
|
||||
menu_process_cursor_motion(server->menu_current, node);
|
||||
menu_process_cursor_motion(node);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -677,8 +677,8 @@ cursor_button(struct wl_listener *listener, void *data)
|
|||
if (view_area != LAB_SSD_MENU) {
|
||||
/* We close the menu on release so we don't leak a stray release */
|
||||
close_menu = true;
|
||||
} else if (menu_call_actions(server->menu_current, node)) {
|
||||
/* Action was successfull, may fail if item contains a submenu */
|
||||
} else if (menu_call_actions(node)) {
|
||||
/* Action was successfull, may fail if item just opens a submenu */
|
||||
close_menu = true;
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue