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 - [Patch] KMSDRM: manage SDL_GetGlobalMouseState()
Summary: [Patch] KMSDRM: manage SDL_GetGlobalMouseState()
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-16 11:37 UTC by Manuel Alfayate Corchete
Modified: 2020-05-26 23:35 UTC (History)
0 users

See Also:


Attachments
Fix for SDL_GetGlobalMouseState() in KMSDRM (656 bytes, patch)
2020-05-16 11:37 UTC, Manuel Alfayate Corchete
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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