Mercurial > emacs
comparison src/xterm.c @ 12966:ce60b1a64399
(x_wm_set_icon_pixmap): If trying to turn off icon pixmap, do nothing.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 29 Aug 1995 04:36:12 +0000 |
parents | 6f07c79d9a05 |
children | 8eac10febc8e |
comparison
equal
deleted
inserted
replaced
12965:4333dc5a142f | 12966:ce60b1a64399 |
---|---|
5671 { | 5671 { |
5672 Pixmap icon_pixmap = x_bitmap_pixmap (f, pixmap_id); | 5672 Pixmap icon_pixmap = x_bitmap_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); |
5680 } | 5693 } |
5681 | 5694 |