changeset 100382:9608fb92d17d

(Fx_wm_set_size_hint): Check if the frame is an X frame.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 13 Dec 2008 01:21:17 +0000
parents 070e432c7534
children e1b931c8770a
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sat Dec 13 01:20:43 2008 +0000
+++ b/src/xfns.c	Sat Dec 13 01:21:17 2008 +0000
@@ -3112,7 +3112,8 @@
     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;
 }