Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't base our resizable state on what the window manager decided, in…
Browse files Browse the repository at this point in the history
…stead we want to base it on the size hints which we set.
  • Loading branch information
slouken committed Sep 28, 2012
1 parent 77b81c1 commit 7a6bb74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/video/x11/SDL_x11video.c
Expand Up @@ -341,7 +341,6 @@ X11_VideoInit(_THIS)
GET_ATOM(_NET_WM_STATE_MAXIMIZED_HORZ);
GET_ATOM(_NET_WM_STATE_FULLSCREEN);
GET_ATOM(_NET_WM_ALLOWED_ACTIONS);
GET_ATOM(_NET_WM_ACTION_RESIZE);
GET_ATOM(_NET_WM_ACTION_FULLSCREEN);
GET_ATOM(_NET_WM_NAME);
GET_ATOM(_NET_WM_ICON_NAME);
Expand Down
1 change: 0 additions & 1 deletion src/video/x11/SDL_x11video.h
Expand Up @@ -88,7 +88,6 @@ typedef struct SDL_VideoData
Atom _NET_WM_STATE_MAXIMIZED_HORZ;
Atom _NET_WM_STATE_FULLSCREEN;
Atom _NET_WM_ALLOWED_ACTIONS;
Atom _NET_WM_ACTION_RESIZE;
Atom _NET_WM_ACTION_FULLSCREEN;
Atom _NET_WM_NAME;
Atom _NET_WM_ICON_NAME;
Expand Down
6 changes: 2 additions & 4 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -152,7 +152,6 @@ X11_GetNetWMState(_THIS, SDL_Window * window)
Atom _NET_WM_STATE_MAXIMIZED_VERT = videodata->_NET_WM_STATE_MAXIMIZED_VERT;
Atom _NET_WM_STATE_MAXIMIZED_HORZ = videodata->_NET_WM_STATE_MAXIMIZED_HORZ;
Atom _NET_WM_STATE_FULLSCREEN = videodata->_NET_WM_STATE_FULLSCREEN;
Atom _NET_WM_ACTION_RESIZE = videodata->_NET_WM_ACTION_RESIZE;
Atom actualType;
int actualFormat;
unsigned long i, numItems, bytesAfter;
Expand Down Expand Up @@ -189,9 +188,8 @@ X11_GetNetWMState(_THIS, SDL_Window * window)
XFree(propertyValue);
}

if (X11_IsActionAllowed(window, _NET_WM_ACTION_RESIZE)) {
flags |= SDL_WINDOW_RESIZABLE;
}
/* FIXME, check the size hints for resizable */
/*flags |= SDL_WINDOW_RESIZABLE;*/

return flags;
}
Expand Down

0 comments on commit 7a6bb74

Please sign in to comment.