| Summary: | Linux: SDL_KeyboardEvent always yields 0 for windowID | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Coranna Howard <me> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | me |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | C++ testcase | ||
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. Well, apparently my CMake configuration had disabled the timer sub-system, which in turn caused the pending focus to never trigger. Go figure. |
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.