cursor: implement <menu><ignoreButtonReleasePeriod>

Addresses UX degradation introduced by commit 1d3ed457.

This prevents clicks with small movement with the intention of opening
the menu from unexpectedly closing the menu or selecting a menu item.
This commit is contained in:
tokyo4j 2024-04-26 09:03:17 +09:00 committed by Hiroaki Yamamoto
parent 96d5d80be2
commit 4b6efb7307
5 changed files with 47 additions and 6 deletions

View file

@ -137,6 +137,9 @@ struct rcxml {
} window_switcher;
struct wl_list window_rules; /* struct window_rule.link */
/* Menu */
unsigned int menu_ignore_button_release_period;
};
extern struct rcxml rc;