comparison src/video/gem/SDL_gemevents.c @ 1065:5d9947da7510

Enable/disable mouse focus
author Patrice Mandin <patmandin@gmail.com>
date Thu, 02 Jun 2005 22:00:48 +0000
parents 54bb19455081
children f73b199bcd75
comparison
equal deleted inserted replaced
1064:fba6b67b4d60 1065:5d9947da7510
222 wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]); 222 wind_set(message[3],WF_CURRXYWH,message[4],message[5],message[6],message[7]);
223 break; 223 break;
224 case WM_TOPPED: 224 case WM_TOPPED:
225 wind_set(message[3],WF_TOP,message[4],0,0,0); 225 wind_set(message[3],WF_TOP,message[4],0,0,0);
226 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS); 226 SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
227 if (this->input_grab == SDL_GRAB_OFF) {
228 SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
229 }
227 break; 230 break;
228 case WM_REDRAW: 231 case WM_REDRAW:
229 if (!GEM_lock_redraw) { 232 if (!GEM_lock_redraw) {
230 GEM_wind_redraw(this, message[3],&message[4]); 233 GEM_wind_redraw(this, message[3],&message[4]);
231 } 234 }
284 } 287 }
285 break; 288 break;
286 case WM_BOTTOMED: 289 case WM_BOTTOMED:
287 case WM_UNTOPPED: 290 case WM_UNTOPPED:
288 SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS); 291 SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
292 if (this->input_grab == SDL_GRAB_OFF) {
293 SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
294 }
289 break; 295 break;
290 } 296 }
291 297
292 return quit; 298 return quit;
293 } 299 }