diff --git a/src/video/x11/SDL_x11clipboard.c b/src/video/x11/SDL_x11clipboard.c index 5e33555f9a..2cd42dc447 100644 --- a/src/video/x11/SDL_x11clipboard.c +++ b/src/video/x11/SDL_x11clipboard.c @@ -139,7 +139,7 @@ static bool WaitForSelection(SDL_VideoDevice *_this, Atom selection_type, bool * waitStart = SDL_GetTicks(); *flag = true; while (*flag) { - SDL_PumpEvents(); + X11_PumpEvents(_this); waitElapsed = SDL_GetTicks() - waitStart; // Wait one second for a selection response. if (waitElapsed > 1000) {