src/video/x11/SDL_x11window.c
changeset 6484 b904bb684095
parent 6483 4b51ff3dcf74
child 6485 3f600ccf393c
equal deleted inserted replaced
6483:4b51ff3dcf74 6484:b904bb684095
   150     Atom _NET_WM_STATE_HIDDEN = videodata->_NET_WM_STATE_HIDDEN;
   150     Atom _NET_WM_STATE_HIDDEN = videodata->_NET_WM_STATE_HIDDEN;
   151     Atom _NET_WM_STATE_FOCUSED = videodata->_NET_WM_STATE_FOCUSED;
   151     Atom _NET_WM_STATE_FOCUSED = videodata->_NET_WM_STATE_FOCUSED;
   152     Atom _NET_WM_STATE_MAXIMIZED_VERT = videodata->_NET_WM_STATE_MAXIMIZED_VERT;
   152     Atom _NET_WM_STATE_MAXIMIZED_VERT = videodata->_NET_WM_STATE_MAXIMIZED_VERT;
   153     Atom _NET_WM_STATE_MAXIMIZED_HORZ = videodata->_NET_WM_STATE_MAXIMIZED_HORZ;
   153     Atom _NET_WM_STATE_MAXIMIZED_HORZ = videodata->_NET_WM_STATE_MAXIMIZED_HORZ;
   154     Atom _NET_WM_STATE_FULLSCREEN = videodata->_NET_WM_STATE_FULLSCREEN;
   154     Atom _NET_WM_STATE_FULLSCREEN = videodata->_NET_WM_STATE_FULLSCREEN;
   155     Atom _NET_WM_ACTION_RESIZE = videodata->_NET_WM_ACTION_RESIZE;
       
   156     Atom actualType;
   155     Atom actualType;
   157     int actualFormat;
   156     int actualFormat;
   158     unsigned long i, numItems, bytesAfter;
   157     unsigned long i, numItems, bytesAfter;
   159     unsigned char *propertyValue = NULL;
   158     unsigned char *propertyValue = NULL;
   160     long maxLength = 1024;
   159     long maxLength = 1024;
   187             flags |= SDL_WINDOW_FULLSCREEN;
   186             flags |= SDL_WINDOW_FULLSCREEN;
   188         }
   187         }
   189         XFree(propertyValue);
   188         XFree(propertyValue);
   190     }
   189     }
   191 
   190 
   192     if (X11_IsActionAllowed(window, _NET_WM_ACTION_RESIZE)) {
   191     /* FIXME, check the size hints for resizable */
   193         flags |= SDL_WINDOW_RESIZABLE;
   192     /*flags |= SDL_WINDOW_RESIZABLE;*/
   194     }
       
   195 
   193 
   196     return flags;
   194     return flags;
   197 }
   195 }
   198 
   196 
   199 static int
   197 static int