#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Fri, 20 Dec 2019 18:23:41 +0100
changeset 8954 6fc0999d2a8c
parent 8953 83f6d8a2f179
child 8955 5fb3df66208d
#BUGFIX by exept class: Image class changed: #fromScreen
Image.st
--- a/Image.st	Fri Dec 20 17:21:58 2019 +0100
+++ b/Image.st	Fri Dec 20 18:23:41 2019 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1991 by Claus Gittinger
               All Rights Reserved
@@ -2462,14 +2460,14 @@
 
     display := Screen current.
 
-    bounds := 0@0 
-        corner:(Screen 
-            monitorRealResolutionByPoint:0@0). "/ use the center monitor
+    bounds := 0@0 corner:(Screen monitorRealResolutionByPoint:0@0). "/ use the center monitor
 
     OperatingSystem isOSXlike ifTrue:[
         "/ sigh: XQuartz does not include the dock
         display == Display ifTrue:[
-            bounds := OperatingSystem getScreenBounds:0
+            PrimitiveFailure catch:[
+                bounds := OperatingSystem getScreenBounds:0
+            ].    
         ].    
     ].