mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
mouse: add support for drag mouse event
This commit is contained in:
parent
ab07b68d7e
commit
5935a78fb4
6 changed files with 58 additions and 31 deletions
|
|
@ -49,6 +49,8 @@ mousebind_event_from_str(const char *str)
|
|||
return MOUSE_ACTION_PRESS;
|
||||
} else if (!strcasecmp(str, "release")) {
|
||||
return MOUSE_ACTION_RELEASE;
|
||||
} else if (!strcasecmp(str, "drag")) {
|
||||
return MOUSE_ACTION_DRAG;
|
||||
}
|
||||
wlr_log(WLR_ERROR, "unknown mouse action (%s)", str);
|
||||
return MOUSE_ACTION_NONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue