Skip to content

Commit

Permalink
x11: Blocking for window maximization should wait 100 ms, not 1000.
Browse files Browse the repository at this point in the history
Reference Issue #7070.
  • Loading branch information
icculus committed Aug 1, 2023
1 parent 5c3df60 commit 3030fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11window.c
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ static void SetWindowMaximized(_THIS, SDL_Window *window, SDL_bool maximized)
X11_XSync(display, False);
prev_handler = X11_XSetErrorHandler(X11_CatchAnyError);

timeout = SDL_GetTicks64() + 1000;
timeout = SDL_GetTicks64() + 100;
while (SDL_TRUE) {
caught_x11_error = SDL_FALSE;
X11_XSync(display, False);
Expand Down

0 comments on commit 3030fd8

Please sign in to comment.