Changeset 173
- Timestamp:
- 05/12/08 15:29:57 (8 months ago)
- Files:
-
- trunk/pycawm/pycawm.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pycawm/pycawm.py
r170 r173 107 107 # intern and cache the atoms 108 108 atomsdb.build_db(self.display) 109 # create the virtual desktops 110 self.create_desktops(nb_desktops) 111 # current desktop is always the first one 112 self.current_desktop = self.desktops[0] 109 113 # create all the cursors 110 114 self.create_cursors() 111 # create the virtual desktops112 self.create_desktops(nb_desktops)113 115 self.root.change_attributes(cursor=self.cursors[self.state,], 114 116 event_mask=(X.ColormapChangeMask | … … 244 246 raise SystemExit(-1) 245 247 246 first_desktop = Desktop(self) 247 for _ in xrange(nb_desktops - 1): 248 for _ in xrange(nb_desktops): 248 249 Desktop(self) 249 250 # first desktop is the current desktop251 self.current_desktop = first_desktop252 250 253 251 def add_key(self, shortcut, *funs):
