mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-18 01:38:08 -06:00
GLX11Window::Create called XSelectInput(display, parent_window, StructureNotifyMask) on the host's display connection, which replaces the event mask that the host (DolphinQt or DolphinNoGUI) selected for the window instead of adding to it. As a result, Qt stopped receiving FocusIn/FocusOut, key and mouse events for the render window once an OpenGL context had been created on it. The same issue made DolphinNoGUI lose its key and focus events with OpenGL. The GL code doesn't process any events itself, and the hosts already select StructureNotify, so just drop the call. Also stop discarding pending events in XSync, as the event queue belongs to the host. Fixes https://bugs.dolphin-emu.org/issues/13354