comparison src/video/x11/SDL_x11wm.c @ 3896:1a327643e741 SDL-1.2

X11 backend: tell app that mouse focus has been obtained when grabbing the input. This allows us to enable DGA mode, even when the system cursor was outside of the window when the grab was initiated. Fixes Bugzilla #299, which has a more detailed explanation of the issue.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 13 Nov 2006 03:58:22 +0000
parents be84332e761e
children 098ac044cd2f
comparison
equal deleted inserted replaced
3895:aeb55f698ee3 3896:1a327643e741
367 if ( !(this->screen->flags & SDL_FULLSCREEN) ) 367 if ( !(this->screen->flags & SDL_FULLSCREEN) )
368 XRaiseWindow(SDL_Display, WMwindow); 368 XRaiseWindow(SDL_Display, WMwindow);
369 369
370 /* Make sure we register input focus */ 370 /* Make sure we register input focus */
371 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS); 371 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
372 /* Since we grabbed the pointer, we have mouse focus, too. */
373 SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
372 } 374 }
373 XSync(SDL_Display, False); 375 XSync(SDL_Display, False);
374 376
375 return(mode); 377 return(mode);
376 } 378 }