mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
fix the failure mode for vid_fullscreen 1
This commit is contained in:
parent
0ffba7e3da
commit
911d38e5e5
1 changed files with 3 additions and 3 deletions
|
@ -376,7 +376,7 @@ x11_create_window (int width, int height)
|
|||
aWMDelete = XInternAtom (x_disp, "WM_DELETE_WINDOW", False);
|
||||
XSetWMProtocols (x_disp, x_win, &aWMDelete, 1);
|
||||
|
||||
if (vid_fullscreen->int_val) {
|
||||
if (vidmode_active && vid_fullscreen->int_val) {
|
||||
XMoveWindow (x_disp, x_win, 0, 0);
|
||||
XWarpPointer (x_disp, None, x_win, 0, 0, 0, 0,
|
||||
vid.width + 2, vid.height + 2);
|
||||
|
@ -384,7 +384,7 @@ x11_create_window (int width, int height)
|
|||
}
|
||||
|
||||
XMapWindow (x_disp, x_win);
|
||||
if (vid_fullscreen->int_val) {
|
||||
if (vidmode_active && vid_fullscreen->int_val) {
|
||||
XGrabPointer (x_disp, x_win, True, 0, GrabModeAsync, GrabModeAsync, x_win, None, CurrentTime);
|
||||
}
|
||||
XRaiseWindow (x_disp, x_win);
|
||||
|
@ -428,7 +428,7 @@ x11_force_view_port (void)
|
|||
#ifdef HAVE_VIDMODE
|
||||
int x, y;
|
||||
|
||||
if (vid_fullscreen->int_val) {
|
||||
if (vidmode_active && vid_fullscreen->int_val) {
|
||||
do {
|
||||
XF86VidModeSetViewPort (x_disp, x_screen, 0, 0);
|
||||
poll (0, 0, 50);
|
||||
|
|
Loading…
Reference in a new issue