#DOCUMENTATION
authorClaus Gittinger <cg@exept.de>
Sat, 02 Apr 2016 16:25:49 +0200
changeset 7258 7400c3d0cb13
parent 7257 0507a7e2c35f
child 7259 40a7c1e90b43
#DOCUMENTATION class: WindowSensor comment/format in: #waitForExposeFor:
WindowSensor.st
--- a/WindowSensor.st	Sat Apr 02 16:21:13 2016 +0200
+++ b/WindowSensor.st	Sat Apr 02 16:25:49 2016 +0200
@@ -3247,12 +3247,12 @@
      in future versions. (or the new device may simulate the arrival of
      such an event)"
 
-    |blocked lostExpose device stopPoll endPollTime pollDelay pollDelay2
+    |blocked lostExpose viewsDevice stopPoll endPollTime pollDelay pollDelay2
      exposeSema|
 
-    device := aView graphicsDevice.
-
-    device scrollsAsynchronous ifFalse:[
+    viewsDevice := aView graphicsDevice.
+
+    viewsDevice scrollsAsynchronous ifFalse:[
         gotExpose remove:aView ifAbsent:nil.
         catchExpose remove:aView ifAbsent:nil.
         ^ self
@@ -3266,9 +3266,9 @@
 
     blocked := true.
     [
-        device flush.
-
-        device isWindowsPlatform ifTrue:[
+        viewsDevice flush.
+
+        viewsDevice isWindowsPlatform ifTrue:[
             "/ since this is definitely a local display,
             "/ there is no need for a long timeOut
             "/ (it should arrive fast)
@@ -3288,8 +3288,8 @@
             "/ must poll for the event
             "/
             [(gotExpose includes:aView) or:[stopPoll]] whileFalse:[
-                (device exposeEventPendingFor:aView id withSync:true) ifTrue:[
-                    device dispatchExposeEventFor:aView id.
+                (viewsDevice exposeEventPendingFor:aView id withSync:true) ifTrue:[
+                    viewsDevice dispatchExposeEventFor:aView id.
                 ].
                 stopPoll := Timestamp now > endPollTime.
                 Processor yield.
@@ -3314,7 +3314,7 @@
                     lostExpose := 999.
                 ].
                 (exposeSema waitWithTimeout:(pollDelay2 * lostExpose)) isNil ifTrue:[
-                    device flush.         "/ we are paranoid
+                    viewsDevice flush.         "/ we are paranoid
                     lostExpose := lostExpose + 1.
                 ].
             ].