Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #8
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["shadow"] = True
     capabilities["server_type"] = "Python/gtk2/win32-shadow"
     return capabilities
Example #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
Example #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
Example #11
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["resize_screen"] = self.randr
     return capabilities
Example #12
0
 def make_hello(self):
     capabilities = GTKServerBase.make_hello(self)
     capabilities["resize_screen"] = self.randr
     return capabilities
Example #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
Example #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