From 911d38e5e568a63588eceb69b8d38caabfe7aaf1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 10 Feb 2001 05:08:25 +0000 Subject: [PATCH] fix the failure mode for vid_fullscreen 1 --- source/context_x11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/context_x11.c b/source/context_x11.c index c6f5338..535e992 100644 --- a/source/context_x11.c +++ b/source/context_x11.c @@ -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);