aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 8ff27cbff38..ff203116e49 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4559,7 +4559,8 @@ x_wm_set_size_hint (f, prompting)
4559 { 4559 {
4560 XSizeHints hints; /* Sometimes I hate X Windows... */ 4560 XSizeHints hints; /* Sometimes I hate X Windows... */
4561 4561
4562 XGetNormalHints (x_current_display, window, &hints); 4562 if (XGetNormalHints (x_current_display, window, &hints) == 0)
4563 hints.flags = 0;
4563 if (hints.flags & PSize) 4564 if (hints.flags & PSize)
4564 size_hints.flags |= PSize; 4565 size_hints.flags |= PSize;
4565 if (hints.flags & PPosition) 4566 if (hints.flags & PPosition)