Beispiel #1
0
 def screens(self):
     """
         return a list of `screen.Screen` instances
         This property is cached.
     """
     setup = self._setup
     iterator = _xcb.xcb_setup_roots_iterator(setup)
     length = _xcb.xcb_setup_roots_length(setup)
     screens = []
     for i in range(length):
         screens.append(screen.Screen(self, iterator.data.contents))
         _xcb.xcb_screen_next(iterator)
     return screens
Beispiel #2
0
 def get_screen_count(cls, connection):
     return _xcb.xcb_setup_roots_length(connection._setup)