Before this commit, the pointer focus is cleared when a menu is closed
by clicking its border. This is because get_cursor_context() returns
type=LAB_SSD_NONE when the cursor is on the menu border and
cursor_update_common() clears the pointer focus. This commit fixes this
by replacing cursor_update_common() with cursor_update_focus(), which
calls get_cursor_context() again after the menu scene-node is hidden.
menu_call_selected_actions(server);
} else {
menu_close_root(server);
- double sx, sy;
- cursor_update_common(server, &ctx, time_msec,
- /*cursor_has_moved*/ false, &sx, &sy);
+ cursor_update_focus(server);
}
}
return notify;