mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
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:
parent
a4f963f67b
commit
980cf58ac5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue