| Summary: | SDL_WINDOWEVENT_FOCUS_GAINED event on hidden x11 windows [patch] | ||
|---|---|---|---|
| Product: | SDL | Reporter: | James Legg <jlegg> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.12 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | patch | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/dd215b7d208b |
Created attachment 4387 [details] patch When a window with keyboard focus is hidden is hidden with SDL_HideWindow, after the expected events (SDL_WINDOWEVENT_HIDDEN and SDL_WINDOWEVENT_FOCUS_LOST), I'm receiving a SDL_WINDOWEVENT_FOCUS_GAINED window event for the hidden window. I'm using gnome-shell with XWayland and SDL's X11 backend. The attached patch fixes the issue for me.