DisplayRootView.st
changeset 6233 b746fb9ba0e3
parent 4989 99ac92b85e4d
child 6267 5eb0ba53aa2a
child 6472 5b21ff383a12
--- a/DisplayRootView.st	Tue Feb 04 16:49:43 2014 +0100
+++ b/DisplayRootView.st	Tue Feb 04 16:49:51 2014 +0100
@@ -155,20 +155,26 @@
 !DisplayRootView methodsFor:'initialization & release'!
 
 initialize
+    |dev|
+
     super initialize.
 
-    width := device width.
-    height := device height.
-    drawableId := device rootWindowFor:self.
+    dev := self device.
+    width := dev width.
+    height := dev height.
+    self createRootWindow.
     realized := true.
 !
 
 reinitialize
     "reinit after snapin"
 
-    width := device width.
-    height := device height.
-    drawableId := device rootWindowFor:self.
+    |dev|
+
+    dev := self device.
+    width := dev width.
+    height := dev height.
+    self createRootWindow.
     realized := true.
     gcId := nil.
 ! !
@@ -220,5 +226,6 @@
 !DisplayRootView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/DisplayRootView.st,v 1.36 2008-07-09 12:44:23 fm Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/DisplayRootView.st,v 1.37 2014-02-04 15:49:51 stefan Exp $'
 ! !
+