summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-12-13 01:21:17 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-12-13 01:21:17 +0000
commit3b18571d2c297f828e4374b0608b95ca9697cc55 (patch)
tree9c4b7f3d7ac6442b9436d834333dc11e44e9d60e /src/xfns.c
parent8d5b49647012d2c6bcedf582be6c835d537f1716 (diff)
downloademacs-3b18571d2c297f828e4374b0608b95ca9697cc55.tar.gz
(Fx_wm_set_size_hint): Check if the frame is an X frame.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 166cca63f2b..5b4d40100c2 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3112,7 +3112,8 @@ If FRAME is nil, use the selected frame. */)
frame = selected_frame;
f = XFRAME (frame);
BLOCK_INPUT;
- x_wm_set_size_hint (f, 0, 0);
+ if (FRAME_X_P (f))
+ x_wm_set_size_hint (f, 0, 0);
UNBLOCK_INPUT;
return Qnil;
}