diff options
| author | Richard M. Stallman | 1993-06-03 05:29:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-03 05:29:12 +0000 |
| commit | 82ee0df472da19512c7e588bfc05e169d364e9d6 (patch) | |
| tree | de9b13c0d0f244d2bd6ce4391094d7a0b69d00d5 /src | |
| parent | cad1e93be83491d79f31aea548ff072edbdfbdb8 (diff) | |
| download | emacs-82ee0df472da19512c7e588bfc05e169d364e9d6.tar.gz emacs-82ee0df472da19512c7e588bfc05e169d364e9d6.zip | |
(x_wm_set_size_hint): Handle XGetNormalHints returning 0.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 3 |
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) |