mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
mouse warpage fixes from james
This commit is contained in:
parent
dd98622859
commit
b79ff6378d
1 changed files with 7 additions and 3 deletions
|
@ -408,13 +408,13 @@ void X11_UpdateFullscreen (cvar_t *fullscreen)
|
|||
|
||||
if (!fullscreen->int_val) {
|
||||
X11_RestoreVidMode ();
|
||||
if (in_grab) {
|
||||
IN_UpdateGrab(in_grab);
|
||||
}
|
||||
if (window_saved) {
|
||||
X11_ForceMove(window_x, window_y);
|
||||
window_saved = 0;
|
||||
}
|
||||
if (in_grab) {
|
||||
IN_UpdateGrab(in_grab);
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
if (X11_GetWindowCoords (&window_x, &window_y))
|
||||
|
@ -424,7 +424,11 @@ void X11_UpdateFullscreen (cvar_t *fullscreen)
|
|||
window_saved = 0;
|
||||
return;
|
||||
}
|
||||
if (in_grab) {
|
||||
IN_UpdateGrab(in_grab);
|
||||
}
|
||||
X11_ForceMove(0, 0);
|
||||
XWarpPointer(x_disp,None,x_win,0,0,0,0,vid.width/2,vid.height/2);
|
||||
X11_ForceViewPort ();
|
||||
/* Done in X11_SetVidMode but moved the window since then */
|
||||
if (in_grab) {
|
||||
|
|
Loading…
Reference in a new issue