src/video/windows/SDL_windowswindow.c
changeset 6662 698c2e533a7e
parent 6535 b117349cc8aa
child 6782 582d35419e8a
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Wed Nov 07 11:13:28 2012 -0800
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Wed Nov 07 15:55:43 2012 -0800
     1.3 @@ -538,12 +538,11 @@
     1.4  }
     1.5  
     1.6  void
     1.7 -WIN_SetWindowGrab(_THIS, SDL_Window * window)
     1.8 +WIN_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
     1.9  {
    1.10      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
    1.11  
    1.12 -    if ((window->flags & SDL_WINDOW_INPUT_GRABBED) &&
    1.13 -        (window->flags & SDL_WINDOW_INPUT_FOCUS)) {
    1.14 +    if (grabbed) {
    1.15          RECT rect;
    1.16          GetClientRect(hwnd, &rect);
    1.17          ClientToScreen(hwnd, (LPPOINT) & rect);