diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-02 23:29:46 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-04 22:28:39 -0800 |
commit | abf6062715c7d1390e516261a31abde4ed7ea64e (patch) | |
tree | 1324ff219d4a3ed20d857844e55a57f971493c58 /src | |
parent | b1eaa18835ec7c3a11e580340625b35c18edf7ca (diff) |
Shell.c: TopLevelSetValues ignores iconic state if shell not yet realized
Fix originally created by Leo Binchy for Sun to fix Solaris bug
1243761 The XmNiconic resource doesn't work
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Shell.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Shell.c b/src/Shell.c index ef6dad2..8a44651 100644 --- a/src/Shell.c +++ b/src/Shell.c @@ -2482,6 +2482,10 @@ static Boolean TopLevelSetValues( XFree((XPointer)icon_name.value); } } + else if (new->topLevel.iconic != old->topLevel.iconic) { + if (new->topLevel.iconic) + new->wm.wm_hints.initial_state = IconicState; + } return False; } |