Lines 1-7
Link Here
|
1 |
Index: src/init.c |
1 |
--- src/init.c.orig Sat Jun 16 23:26:00 2007 |
2 |
=================================================================== |
2 |
+++ src/init.c Sat Jun 16 23:26:19 2007 |
3 |
--- src/init.c (revision 195) |
|
|
4 |
+++ src/init.c (working copy) |
5 |
@@ -41,7 +41,7 @@ |
3 |
@@ -41,7 +41,7 @@ |
6 |
# define DEBUG_X |
4 |
# define DEBUG_X |
7 |
#else |
5 |
#else |
Lines 11-13
Link Here
|
11 |
#endif |
9 |
#endif |
12 |
|
10 |
|
13 |
#if DEBUG_LEVEL |
11 |
#if DEBUG_LEVEL |
|
|
12 |
@@ -3369,6 +3369,18 @@ |
13 |
wm_hint.initial_state = ISSET_OPTION(r, Opt_iconic) ? IconicState |
14 |
: NormalState; |
15 |
wm_hint.window_group = r->TermWin.parent; |
16 |
+ |
17 |
+ /* window icon hint */ |
18 |
+ if( r->h->rs[Rs_appIcon] ) { |
19 |
+ XpmReadFileToPixmap(r->Xdisplay, r->TermWin.parent, r->h->rs[Rs_appIcon], |
20 |
+ &r->h->appIcon, &r->h->appIconMask,0); |
21 |
+ } |
22 |
+ if( r->h->appIcon != None && r->h->appIconMask != None ) { |
23 |
+ wm_hint.icon_pixmap = r->h->appIcon; |
24 |
+ wm_hint.icon_mask = r->h->appIconMask; |
25 |
+ wm_hint.flags |= IconPixmapHint | IconMaskHint; |
26 |
+ } |
27 |
+ |
28 |
/* class hints */ |
29 |
class_hint.res_name = (char*) r->h->rs[Rs_name]; |
30 |
class_hint.res_class = (char*) APL_CLASS; |