If the window hasn't any sizehint, reset the struct.

SVN revision: 15271
This commit is contained in:
sebastid 2005-06-12 11:49:39 +00:00 committed by sebastid
parent 0d0d458f76
commit 7523c7699b
1 changed files with 4 additions and 1 deletions

View File

@ -291,7 +291,10 @@ ecore_x_icccm_size_pos_hints_set(Ecore_X_Window win,
XSizeHints hint;
long mask;
XGetWMNormalHints(_ecore_x_disp, win, &hint, &mask);
if (!XGetWMNormalHints(_ecore_x_disp, win, &hint, &mask))
{
memset(&hint, 0, sizeof(XSizeHints));
}
hint.flags = 0;
if (request_pos)