diff src/video/x11/SDL_x11events.c @ 3186:51750b7a966f

indent
author Sam Lantinga <slouken@libsdl.org>
date Wed, 10 Jun 2009 13:34:20 +0000
parents 62d4992e5a92
children 102b7880543a
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Wed Jun 10 08:09:04 2009 +0000
+++ b/src/video/x11/SDL_x11events.c	Wed Jun 10 13:34:20 2009 +0000
@@ -339,6 +339,7 @@
                 if (xevent.type == data->proximity_in) {
                     XProximityNotifyEvent *proximity =
                         (XProximityNotifyEvent *) & xevent;
+                    SDL_SetMouseFocus(proximity->deviceid, data->windowID);
                     SDL_SendProximity(proximity->deviceid, proximity->x,
                                       proximity->y, SDL_PROXIMITYIN);
                     return;
@@ -346,6 +347,7 @@
                 if (xevent.type == data->proximity_out) {
                     XProximityNotifyEvent *proximity =
                         (XProximityNotifyEvent *) & xevent;
+                    SDL_SetMouseFocus(proximity->deviceid, data->windowID);
                     SDL_SendProximity(proximity->deviceid, proximity->x,
                                       proximity->y, SDL_PROXIMITYOUT);
                     return;