From: Richard M. Stallman Date: Tue, 29 Aug 1995 04:36:12 +0000 (+0000) Subject: (x_wm_set_icon_pixmap): If trying to turn off icon pixmap, do nothing. X-Git-Tag: emacs-19.34~2894 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6856855556210868da645282026ccaefc77d2926;p=emacs.git (x_wm_set_icon_pixmap): If trying to turn off icon pixmap, do nothing. --- diff --git a/src/xterm.c b/src/xterm.c index a88cba5ea10..2c995dc6ed0 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5673,7 +5673,20 @@ x_wm_set_icon_pixmap (f, pixmap_id) f->output_data.x->wm_hints.icon_pixmap = icon_pixmap; } else - f->output_data.x->wm_hints.icon_pixmap = None; + { + /* It seems there is no way to turn off use of an icon pixmap. + The following line does it, only if no icon has yet been created, + for some window managers. But with mwm it crashes. + Some people say it should clear the IconPixmapHint bit in this case, + but that doesn't work, and the X consortium said it isn't the + right thing at all. Since there is no way to win, + best to explicitly give up. */ +#if 0 + f->output_data.x->wm_hints.icon_pixmap = None; +#else + return; +#endif + } f->output_data.x->wm_hints.flags |= IconPixmapHint; XSetWMHints (FRAME_X_DISPLAY (f), window, &f->output_data.x->wm_hints);