Commit 82ee0df4 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(x_wm_set_size_hint): Handle XGetNormalHints returning 0.

parent cad1e93b
......@@ -4559,7 +4559,8 @@ x_wm_set_size_hint (f, prompting)
{
XSizeHints hints; /* Sometimes I hate X Windows... */
XGetNormalHints (x_current_display, window, &hints);
if (XGetNormalHints (x_current_display, window, &hints) == 0)
hints.flags = 0;
if (hints.flags & PSize)
size_hints.flags |= PSize;
if (hints.flags & PPosition)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment