Mercurial > emacs
diff src/xterm.c @ 3444:2a646c40a4cf
(x_wm_set_size_hint): Handle XGetNormalHints returning 0.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 03 Jun 1993 05:29:12 +0000 |
parents | f7f2e724f501 |
children | d23de4338f96 |
line wrap: on
line diff
--- a/src/xterm.c Thu Jun 03 04:48:56 1993 +0000 +++ b/src/xterm.c Thu Jun 03 05:29:12 1993 +0000 @@ -4559,7 +4559,8 @@ { 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)