summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-02 23:29:46 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-04 22:28:39 -0800
commitabf6062715c7d1390e516261a31abde4ed7ea64e (patch)
tree1324ff219d4a3ed20d857844e55a57f971493c58 /src
parentb1eaa18835ec7c3a11e580340625b35c18edf7ca (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.c4
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;
}