mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
Use ScreenCount() instead of SDL_GetNumVideoDisplays()
The limitation appears to be specific to multi-screen setups
This commit is contained in:
parent
c74ea994a5
commit
b6cf889af4
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ WarpMouseInternal(Window xwindow, const int x, const int y)
|
|||
/* It seems XIWarpPointer() doesn't work correctly on multi-head setups:
|
||||
* https://developer.blender.org/rB165caafb99c6846e53d11c4e966990aaffc06cea
|
||||
*/
|
||||
if (SDL_GetNumVideoDisplays() == 1) {
|
||||
if (ScreenCount(display) == 1) {
|
||||
X11_XIGetClientPointer(display, None, &deviceid);
|
||||
}
|
||||
if (deviceid != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue