diff src/xfns.c @ 69428:1b5fec6d607f

(x_icon): Disable redundant call to `x_wm_set_window_state'.
author Károly Lőrentey <lorentey@elte.hu>
date Sun, 12 Mar 2006 01:37:34 +0000
parents 26f292c725f1
children ae6acd1629af a802c5505156
line wrap: on
line diff
--- a/src/xfns.c	Sun Mar 12 01:06:59 2006 +0000
+++ b/src/xfns.c	Sun Mar 12 01:37:34 2006 +0000
@@ -2821,12 +2821,15 @@
   if (! EQ (icon_x, Qunbound))
     x_wm_set_icon_position (f, XINT (icon_x), XINT (icon_y));
 
+#if 0 /* x_get_arg removes the visibility parameter as a side effect,
+         but x_create_frame still needs it.  */
   /* Start up iconic or window? */
   x_wm_set_window_state
     (f, (EQ (x_get_arg (dpyinfo, parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL),
 	     Qicon)
 	 ? IconicState
 	 : NormalState));
+#endif
 
   x_text_icon (f, (char *) SDATA ((!NILP (f->icon_name)
 				     ? f->icon_name