mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Merge pull request #3342 from RedSoxFan/scroll-buttons-improved
Improve mouse button parsing: input scroll_button
This commit is contained in:
commit
db1631b67d
3 changed files with 24 additions and 21 deletions
|
|
@ -1227,7 +1227,7 @@ uint32_t get_mouse_bindcode(const char *name, char **error) {
|
|||
|
||||
uint32_t get_mouse_button(const char *name, char **error) {
|
||||
uint32_t button = get_mouse_bindsym(name, error);
|
||||
if (!button && !error) {
|
||||
if (!button && !*error) {
|
||||
button = get_mouse_bindcode(name, error);
|
||||
}
|
||||
return button;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue