mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
mousebind: add support for more contexts and mouse events
This commit is contained in:
parent
98085b4546
commit
6b948c7106
4 changed files with 89 additions and 30 deletions
|
|
@ -7,6 +7,9 @@
|
|||
enum mouse_event {
|
||||
MOUSE_ACTION_NONE = 0,
|
||||
MOUSE_ACTION_DOUBLECLICK,
|
||||
MOUSE_ACTION_CLICK,
|
||||
MOUSE_ACTION_PRESS,
|
||||
MOUSE_ACTION_RELEASE,
|
||||
};
|
||||
|
||||
struct mousebind {
|
||||
|
|
@ -21,6 +24,7 @@ struct mousebind {
|
|||
const char *command;
|
||||
|
||||
struct wl_list link; /* rcxml::mousebinds */
|
||||
bool pressed_in_context; /* used in click events */
|
||||
};
|
||||
|
||||
enum mouse_event mousebind_event_from_str(const char *str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue