DGA guards

This commit is contained in:
gbeauche 2004-01-14 23:15:41 +00:00
parent 07f0be19b5
commit ea61b2a4fc

View File

@ -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