mouse: add support for drag mouse event

This commit is contained in:
ARDiDo 2022-01-06 18:30:17 -05:00 committed by Johan Malm
parent ab07b68d7e
commit 5935a78fb4
6 changed files with 58 additions and 31 deletions

View file

@ -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;