From a9d54793ea232d6c6b93cf10477216e4361abcec Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A1roly=20L=C5=91rentey?= Date: Sun, 12 Mar 2006 01:37:34 +0000 Subject: [PATCH] (x_icon): Disable redundant call to `x_wm_set_window_state'. --- src/ChangeLog | 4 ++++ src/xfns.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 68178e2c4d3..16565f77c03 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-03-12 L$,1 q(Brentey K,Aa(Broly + + * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'. + 2006-03-11 Jason Rumney * w32fns.c (signal_user_input): New function. diff --git a/src/xfns.c b/src/xfns.c index 2ab185a3c2d..5d580c9a1f1 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2821,12 +2821,15 @@ x_icon (f, parms) 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 -- 2.39.2