We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5141

Summary: [Patch] KMSDRM: manage SDL_GetGlobalMouseState()
Product: SDL Reporter: Manuel Alfayate Corchete <redwindwanderer>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Linux   
Attachments: Fix for SDL_GetGlobalMouseState() in KMSDRM

Description Manuel Alfayate Corchete 2020-05-16 11:37:53 UTC
Created attachment 4344 [details]
Fix for SDL_GetGlobalMouseState() in KMSDRM

Hi again,

On the KMSDRM backend, there is no such thing as a desktop, yet some programs could (and DO) use SDL_GetGlobalMouseState().
So I think its good idea that, in KMSDRM, it returns the same mouse coordinates anyway as SDL_GetMouseState() would return. There is nothing else it could return, as far as I can understand, since there is no desktop anyway.
This small patch does precisely that.
Comment 1 Sam Lantinga 2020-05-26 23:35:36 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/5967fd814738