changeset 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 7a15b35366f8
children 49b72d583354
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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)