mirror of
https://github.com/swaywm/sway.git
synced 2026-04-16 08:21:30 -04:00
Merge ecd60a867a into 909a2ddb5f
This commit is contained in:
commit
67813d1c46
1 changed files with 0 additions and 6 deletions
|
|
@ -1237,12 +1237,6 @@ uint32_t get_mouse_bindcode(const char *name, char **error) {
|
|||
*error = strdup("Button event code out of range.");
|
||||
return 0;
|
||||
}
|
||||
const char *event = libevdev_event_code_get_name(EV_KEY, code);
|
||||
if (!event || !has_prefix(event, "BTN_")) {
|
||||
*error = format_str("Event code %d (%s) is not a button",
|
||||
code, event ? event : "(null)");
|
||||
return 0;
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue