Skip to content

Commit

Permalink
Enable/disable mouse focus
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jun 2, 2005
1 parent 8c056b9 commit ffb0ba1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/video/gem/SDL_gemevents.c
Expand Up @@ -224,6 +224,9 @@ static int do_messages(_THIS, short *message)
case WM_TOPPED:
wind_set(message[3],WF_TOP,message[4],0,0,0);
SDL_PrivateAppActive(1, SDL_APPINPUTFOCUS);
if (this->input_grab == SDL_GRAB_OFF) {
SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS);
}
break;
case WM_REDRAW:
if (!GEM_lock_redraw) {
Expand Down Expand Up @@ -286,6 +289,9 @@ static int do_messages(_THIS, short *message)
case WM_BOTTOMED:
case WM_UNTOPPED:
SDL_PrivateAppActive(0, SDL_APPINPUTFOCUS);
if (this->input_grab == SDL_GRAB_OFF) {
SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
}
break;
}

Expand Down

0 comments on commit ffb0ba1

Please sign in to comment.