src/video/x11/SDL_x11window.c
changeset 6024 38e2f4644548
parent 6023 6279958d571d
child 6045 b8e995dab018
equal deleted inserted replaced
6023:6279958d571d 6024:38e2f4644548
   186                 window->flags |= SDL_WINDOW_MAXIMIZED;
   186                 window->flags |= SDL_WINDOW_MAXIMIZED;
   187             }  else if (fullscreen == 1) {
   187             }  else if (fullscreen == 1) {
   188                 window->flags |= SDL_WINDOW_FULLSCREEN;
   188                 window->flags |= SDL_WINDOW_FULLSCREEN;
   189             }
   189             }
   190             XFree(propertyValue);
   190             XFree(propertyValue);
       
   191         }
       
   192     }
       
   193 
       
   194     {
       
   195         Window FocalWindow;
       
   196         int RevertTo=0;
       
   197         XGetInputFocus(data->videodata->display, &FocalWindow, &RevertTo);
       
   198         if (FocalWindow==w)
       
   199         {
       
   200             window->flags |= SDL_WINDOW_INPUT_FOCUS;
       
   201             SDL_SetKeyboardFocus(data->window);
       
   202         }
       
   203 
       
   204         if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
       
   205             /* Tell x11 to clip mouse */
   191         }
   206         }
   192     }
   207     }
   193 
   208 
   194     /* FIXME: How can I tell?
   209     /* FIXME: How can I tell?
   195        {
   210        {