mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
X11: only send mouse button up events if not a mousewheel "button"
(Brackets in the wrong place, my bad!)
This commit is contained in:
@@ -1029,8 +1029,8 @@ X11_DispatchEvent(_THIS)
|
|||||||
/* see explanation at case ButtonPress */
|
/* see explanation at case ButtonPress */
|
||||||
button -= (8-SDL_BUTTON_X1);
|
button -= (8-SDL_BUTTON_X1);
|
||||||
}
|
}
|
||||||
|
SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
|
||||||
}
|
}
|
||||||
SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user