From ea61b2a4fcd186f09c2f4dca234c769650582350 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 14 Jan 2004 23:15:41 +0000 Subject: [PATCH] DGA guards --- SheepShaver/src/Unix/video_x.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SheepShaver/src/Unix/video_x.cpp b/SheepShaver/src/Unix/video_x.cpp index 384d2da3..ba10555c 100644 --- a/SheepShaver/src/Unix/video_x.cpp +++ b/SheepShaver/src/Unix/video_x.cpp @@ -968,8 +968,10 @@ static void resume_emul(void) // Reopen full screen display XGrabKeyboard(x_display, rootwin, 1, GrabModeAsync, GrabModeAsync, CurrentTime); XGrabPointer(x_display, rootwin, 1, PointerMotionMask | ButtonPressMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, None, None, CurrentTime); +#ifdef ENABLE_XF86_DGA XF86DGADirectVideo(x_display, screen, XF86DGADirectGraphics | XF86DGADirectKeyb | XF86DGADirectMouse); XF86DGASetViewPort(x_display, screen, 0, 0); +#endif XSync(x_display, false); // the_buffer already contains the data to restore. i.e. since a temporary