Ejemplo n.º 1
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["server_type"] = "Python/gtk/x11"
     if source.wants_features:
         capabilities.update({
             "resize_screen":
             self.randr,
             "resize_exact":
             self.randr_exact_size,
             "force_ungrab":
             True,
             "keyboard.fast-switching":
             True,
             "wheel.precise":
             self.pointer_device.has_precise_wheel(),
             "touchpad-device":
             bool(self.touchpad_device),
         })
         if self.randr:
             sizes = RandR.get_xrr_screen_sizes()
             if len(sizes) > 1:
                 capabilities["screen-sizes"] = sizes
         if self.default_cursor_image and source.wants_default_cursor:
             capabilities["cursor.default"] = self.default_cursor_image
     return capabilities
Ejemplo n.º 2
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["server_type"] = "Python/gtk/x11"
     if source.wants_features:
         capabilities["resize_screen"] = self.randr
         capabilities["force_ungrab"] = True
     return capabilities
Ejemplo n.º 3
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["server_type"] = "Python/gtk/x11"
     if source.wants_features:
         capabilities["resize_screen"] = self.randr
         capabilities["force_ungrab"] = True
     return capabilities
Ejemplo n.º 4
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["server_type"] = "Python/gtk/x11"
     if source.wants_features:
         capabilities.update({
             "resize_screen": self.randr,
             "force_ungrab": True,
             "keyboard.fast-switching": True,
         })
     return capabilities
Ejemplo n.º 5
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["server_type"] = "Python/gtk/x11"
     if source.wants_features:
         capabilities.update({
                 "resize_screen"             : self.randr,
                 "force_ungrab"              : True,
                 "keyboard.fast-switching"   : True,
                 })
     return capabilities
Ejemplo n.º 6
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["server_type"] = "Python/gtk/x11"
     if source.wants_features:
         capabilities.update({
             "resize_screen": self.randr,
             "force_ungrab": True,
             "keyboard.fast-switching": True,
         })
         if self.randr and len(RandR.get_screen_sizes()) > 1:
             capabilities["screen-sizes"] = RandR.get_screen_sizes()
         if self.default_cursor_data and source.wants_default_cursor:
             capabilities["cursor.default"] = self.default_cursor_data
     return capabilities
Ejemplo n.º 7
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["shadow"] = True
     capabilities["server_type"] = "Python/gtk2/osx-shadow"
     return capabilities
Ejemplo n.º 8
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["shadow"] = True
     capabilities["server_type"] = "Python/gtk2/win32-shadow"
     return capabilities
Ejemplo n.º 9
0
 def make_hello(self, source):
     caps = ShadowServerBase.make_hello(self, source)
     caps.update(GTKServerBase.make_hello(self, source))
     if source.wants_features:
         caps["screen_sizes"] = get_screen_sizes()
     return caps
Ejemplo n.º 10
0
 def make_hello(self, source):
     capabilities = GTKServerBase.make_hello(self, source)
     capabilities["shadow"] = True
     capabilities["server_type"] = "Python/gtk2/osx-shadow"
     return capabilities
Ejemplo n.º 11
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["resize_screen"] = self.randr
     return capabilities
Ejemplo n.º 12
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["resize_screen"] = self.randr
     return capabilities
Ejemplo n.º 13
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["server_type"] = "Python/gtk/x11"
     capabilities["resize_screen"] = self.randr
     capabilities["force_ungrab"] = True
     return capabilities
Ejemplo n.º 14
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["server_type"] = "Python/gtk/x11"
     capabilities["resize_screen"] = self.randr
     capabilities["force_ungrab"] = True
     return capabilities