# HG changeset patch # User Richard M. Stallman # Date 739085352 0 # Node ID 2a646c40a4cfbeaa3699a8516d1a4c0baaad21a7 # Parent 7a15b35366f83a5f51f45e7325c77c9b78883831 (x_wm_set_size_hint): Handle XGetNormalHints returning 0. diff -r 7a15b35366f8 -r 2a646c40a4cf src/xterm.c --- 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)