mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
parse and respect modifiers for mouse bindings
This commit is contained in:
parent
c34a2fc976
commit
8eab1e8132
4 changed files with 31 additions and 10 deletions
|
|
@ -19,6 +19,9 @@ struct mousebind {
|
|||
/* ex: BTN_LEFT, BTN_RIGHT from linux/input_event_codes.h */
|
||||
uint32_t button;
|
||||
|
||||
/* ex: WLR_MODIFIER_SHIFT | WLR_MODIFIER_LOGO */
|
||||
uint32_t modifiers;
|
||||
|
||||
/* ex: doubleclick, press, drag */
|
||||
enum mouse_event mouse_event;
|
||||
const char *action;
|
||||
|
|
@ -29,7 +32,7 @@ struct mousebind {
|
|||
};
|
||||
|
||||
enum mouse_event mousebind_event_from_str(const char *str);
|
||||
uint32_t mousebind_button_from_str(const char *str);
|
||||
uint32_t mousebind_button_from_str(const char *str, uint32_t *modifiers);
|
||||
struct mousebind *mousebind_create(const char *context);
|
||||
|
||||
#endif /* __LABWC_MOUSEBIND_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue