diff --git a/src/video/x11/SDL_x11xinput2.c b/src/video/x11/SDL_x11xinput2.c index a0269e747e..5d72ce99e8 100644 --- a/src/video/x11/SDL_x11xinput2.c +++ b/src/video/x11/SDL_x11xinput2.c @@ -614,7 +614,7 @@ void X11_HandleXinput2Event(SDL_VideoDevice *_this, XGenericEventCookie *cookie) /* Ignore slave button events on non-focused windows, as they can arrive before FocusIn events, * or result in focus being incorrectly set while a grab is active. */ - if (SDL_GetMouseFocus() != windowdata->window || SDL_GetKeyboardFocus() != windowdata->window) { + if (SDL_GetMouseFocus() != windowdata->window) { break; }