Wait for the window to be visible before mouse warping

This fixes the hang during fullscreen startup on my system (the motion
events weren't being generated because there was no window to see the
motion).
This commit is contained in:
Bill Currie 2019-07-10 22:18:51 +09:00
parent a4f963f67b
commit 980cf58ac5
1 changed files with 2 additions and 1 deletions

View File

@ -574,10 +574,11 @@ X11_CreateWindow (int width, int height)
X11_WaitForEvent (ConfigureNotify);
vid_context_created = true;
XRaiseWindow (x_disp, x_win);
X11_WaitForEvent (VisibilityNotify);
if (vid_fullscreen->int_val) {
X11_UpdateFullscreen (vid_fullscreen);
}
XRaiseWindow (x_disp, x_win);
}
void