WindowGroup.st
changeset 7131 42d5af0d9bd3
parent 7089 5ba462b944e8
child 7392 ec0e01854ed2
--- a/WindowGroup.st	Mon Feb 08 12:35:45 2016 +0100
+++ b/WindowGroup.st	Mon Feb 08 13:59:11 2016 +0100
@@ -1494,12 +1494,10 @@
                             "/ This keeps modalBoxes visible
                             "/ (not needed with X, where the windowManager does it for us)
                             (g sensor hasConfigureEventFor:mainView) ifTrue:[
-                                topViews size > 0 ifTrue:[
-                                    topViews first shown ifTrue:[
-                                        topViews first raiseDeiconified
-                                    ].
-                                ]
-                            ]
+                                (topViews size ~~ 0 and:[topViews first shown]) ifTrue:[
+                                    topViews first raiseDeiconified
+                                ].
+                            ].
                         ].
                         g processEventsWithModalGroup:self.
                     ]