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 2665 - Linux: SDL_KeyboardEvent always yields 0 for windowID
Summary: Linux: SDL_KeyboardEvent always yields 0 for windowID
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.3
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 21:47 UTC by Coranna Howard
Modified: 2014-07-30 04:52 UTC (History)
1 user (show)

See Also:


Attachments
C++ testcase (743 bytes, text/x-c++src)
2014-07-29 21:47 UTC, Coranna Howard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coranna Howard 2014-07-29 21:47:58 UTC
Created attachment 1793 [details]
C++ testcase

I suspect this has something to do with focus handling in the X11 backend. I haven't grasped the whole "pending focus" situation, so I've not attempted to hack up a patch. Mouse events have the correct windowID, but they're registered *with* the window the system events were sent to in the first place.
Comment 1 Coranna Howard 2014-07-29 21:59:31 UTC
Oh, and I should probably mention that windows never have ID 0, from what I've seen (IDs start at 2 for some reason). Side annoyance: ID!? I'd much rather have the window pointer from events. Indirection is no fun.
Comment 2 Coranna Howard 2014-07-30 04:52:40 UTC
Well, apparently my CMake configuration had disabled the timer sub-system, which in turn caused the pending focus to never trigger. Go figure.