src/video/gem/SDL_gemevents.c
changeset 1857 417f2af2bd52
parent 1420 2405517b5eab
child 1895 c121d94672cb
child 3854 f1816773a309
     1.1 --- a/src/video/gem/SDL_gemevents.c	Tue May 23 15:07:56 2006 +0000
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Wed Jun 14 18:57:58 2006 +0000
     1.3 @@ -186,8 +186,18 @@
     1.4  			if (this->input_grab == SDL_GRAB_OFF) {
     1.5  				if (SDL_GetAppState() & SDL_APPMOUSEFOCUS) {
     1.6  					SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
     1.7 +					if (SDL_GetAppState() & SDL_APPINPUTFOCUS) {
     1.8 +						graf_mouse(ARROW, NULL);
     1.9 +					}
    1.10  				} else {
    1.11  					SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
    1.12 +					if (SDL_GetAppState() & SDL_APPINPUTFOCUS) {
    1.13 +						if (GEM_cursor == (void *) -1) {
    1.14 +							graf_mouse(M_OFF, NULL);
    1.15 +						} else if (GEM_cursor) {
    1.16 +							graf_mouse(USER_DEF, GEM_cursor->mform_p);
    1.17 +						}
    1.18 +					}
    1.19  				}
    1.20  			}
    1.21  		}