[PATCH:libXt 3/3] Shell.c: TopLevelSetValues ignores iconic state if shell not yet realized

Alan Coopersmith alan.coopersmith at oracle.com
Fri Feb 4 22:30:00 PST 2011


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 at oracle.com>
---
 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;
 }
 
-- 
1.7.3.2



More information about the xorg-devel mailing list