aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-29 04:36:12 +0000
committerRichard M. Stallman1995-08-29 04:36:12 +0000
commit6856855556210868da645282026ccaefc77d2926 (patch)
tree34ca7e5a43dacadd3203858976e68e50777c9824 /src
parentafe3e774719298e84da086e8b2fa58215b414ab9 (diff)
downloademacs-6856855556210868da645282026ccaefc77d2926.tar.gz
emacs-6856855556210868da645282026ccaefc77d2926.zip
(x_wm_set_icon_pixmap): If trying to turn off icon pixmap, do nothing.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c15
1 files changed, 14 insertions, 1 deletions
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)
5673 f->output_data.x->wm_hints.icon_pixmap = icon_pixmap; 5673 f->output_data.x->wm_hints.icon_pixmap = icon_pixmap;
5674 } 5674 }
5675 else 5675 else
5676 f->output_data.x->wm_hints.icon_pixmap = None; 5676 {
5677 /* It seems there is no way to turn off use of an icon pixmap.
5678 The following line does it, only if no icon has yet been created,
5679 for some window managers. But with mwm it crashes.
5680 Some people say it should clear the IconPixmapHint bit in this case,
5681 but that doesn't work, and the X consortium said it isn't the
5682 right thing at all. Since there is no way to win,
5683 best to explicitly give up. */
5684#if 0
5685 f->output_data.x->wm_hints.icon_pixmap = None;
5686#else
5687 return;
5688#endif
5689 }
5677 5690
5678 f->output_data.x->wm_hints.flags |= IconPixmapHint; 5691 f->output_data.x->wm_hints.flags |= IconPixmapHint;
5679 XSetWMHints (FRAME_X_DISPLAY (f), window, &f->output_data.x->wm_hints); 5692 XSetWMHints (FRAME_X_DISPLAY (f), window, &f->output_data.x->wm_hints);