# HG changeset patch # User Richard M. Stallman # Date 809670972 0 # Node ID ce60b1a64399a90e933b4045a84f2d7f023e4688 # Parent 4333dc5a142fc05ef67c4c1d231577db944e0268 (x_wm_set_icon_pixmap): If trying to turn off icon pixmap, do nothing. diff -r 4333dc5a142f -r ce60b1a64399 src/xterm.c --- a/src/xterm.c Mon Aug 28 20:38:37 1995 +0000 +++ b/src/xterm.c Tue Aug 29 04:36:12 1995 +0000 @@ -5673,7 +5673,20 @@ 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);