def make_hello(self, challenge_response=None): capabilities = XpraClientBase.make_hello(self, challenge_response) add_gtk_version_info(capabilities, gtk) for k, v in self.get_keymap_properties().items(): capabilities[k] = v if self.readonly: #don't bother sending keyboard info, as it won't be used capabilities["keyboard"] = False else: capabilities["xkbmap_layout"] = nn(self.xkbmap_layout) capabilities["xkbmap_variant"] = nn(self.xkbmap_variant) capabilities["modifiers"] = self.get_current_modifiers() root_w, root_h = get_root_size() capabilities["desktop_size"] = [root_w, root_h] key_repeat = self._client_extras.get_keyboard_repeat() if key_repeat: delay_ms, interval_ms = key_repeat capabilities["key_repeat"] = (delay_ms, interval_ms) capabilities["keyboard_sync"] = self.keyboard_sync and (key_repeat is not None) if self.mmap_file: capabilities["mmap_file"] = self.mmap_file capabilities["mmap_token"] = self.mmap_token capabilities["randr_notify"] = True capabilities["compressible_cursors"] = True capabilities["dpi"] = self.dpi capabilities["clipboard"] = self.client_supports_clipboard capabilities["notifications"] = self.client_supports_notifications capabilities["cursors"] = self.client_supports_cursors capabilities["bell"] = self.client_supports_bell capabilities["encoding_client_options"] = True return capabilities
def make_hello(self, challenge_response=None): capabilities = XpraClientBase.make_hello(self, challenge_response) add_gtk_version_info(capabilities, gtk) for k,v in self.get_keymap_properties().items(): capabilities[k] = v if self.readonly: #don't bother sending keyboard info, as it won't be used capabilities["keyboard"] = False else: capabilities["xkbmap_layout"] = nn(self.xkbmap_layout) capabilities["xkbmap_variant"] = nn(self.xkbmap_variant) capabilities["modifiers"] = self.get_current_modifiers() root_w, root_h = get_root_size() capabilities["desktop_size"] = [root_w, root_h] capabilities["screen_sizes"] = self.get_screen_sizes() key_repeat = self._client_extras.get_keyboard_repeat() if key_repeat: delay_ms,interval_ms = key_repeat capabilities["key_repeat"] = (delay_ms,interval_ms) capabilities["keyboard_sync"] = self.keyboard_sync and (key_repeat is not None) if self.mmap_file: capabilities["mmap_file"] = self.mmap_file capabilities["mmap_token"] = self.mmap_token capabilities["randr_notify"] = True capabilities["compressible_cursors"] = True capabilities["dpi"] = self.dpi capabilities["clipboard"] = self.client_supports_clipboard capabilities["notifications"] = self.client_supports_notifications capabilities["cursors"] = self.client_supports_cursors capabilities["bell"] = self.client_supports_bell capabilities["encoding_client_options"] = True capabilities["share"] = self.client_supports_sharing return capabilities
def make_hello(self, challenge_response=None): capabilities = XpraClientBase.make_hello(self, challenge_response) add_gtk_version_info(capabilities, gtk) for k, v in self.get_keymap_properties().items(): capabilities[k] = v if self.readonly: #don't bother sending keyboard info, as it won't be used capabilities["keyboard"] = False else: capabilities["xkbmap_layout"] = nn(self.xkbmap_layout) capabilities["xkbmap_variant"] = nn(self.xkbmap_variant) capabilities["modifiers"] = self.get_current_modifiers() root_w, root_h = get_root_size() capabilities["desktop_size"] = [root_w, root_h] capabilities["screen_sizes"] = self.get_screen_sizes() capabilities["client_type"] = "Python/Gtk" key_repeat = self._client_extras.get_keyboard_repeat() if key_repeat: delay_ms, interval_ms = key_repeat capabilities["key_repeat"] = (delay_ms, interval_ms) capabilities["keyboard_sync"] = self.keyboard_sync and (key_repeat is not None) if self.mmap_file: capabilities["mmap_file"] = self.mmap_file capabilities["mmap_token"] = self.mmap_token capabilities["randr_notify"] = True capabilities["compressible_cursors"] = True capabilities["dpi"] = self.dpi capabilities["clipboard"] = self.client_supports_clipboard capabilities["notifications"] = self.client_supports_notifications capabilities["cursors"] = self.client_supports_cursors capabilities["bell"] = self.client_supports_bell capabilities["encoding_client_options"] = True capabilities["rgb24zlib"] = True capabilities["share"] = self.client_supports_sharing capabilities["auto_refresh_delay"] = int(self.auto_refresh_delay * 1000) capabilities["windows"] = self.windows_enabled try: from wimpiggy.prop import set_xsettings_format assert set_xsettings_format capabilities["xsettings-tuple"] = True except: pass return capabilities
def make_hello(self, challenge_response=None): capabilities = XpraClientBase.make_hello(self, challenge_response) add_gtk_version_info(capabilities, gtk) for k,v in self.get_keymap_properties().items(): capabilities[k] = v if self.readonly: #don't bother sending keyboard info, as it won't be used capabilities["keyboard"] = False else: capabilities["xkbmap_layout"] = nn(self.xkbmap_layout) capabilities["xkbmap_variant"] = nn(self.xkbmap_variant) capabilities["modifiers"] = self.get_current_modifiers() root_w, root_h = get_root_size() capabilities["desktop_size"] = [root_w, root_h] capabilities["screen_sizes"] = self.get_screen_sizes() capabilities["client_type"] = "Python/Gtk" key_repeat = self._client_extras.get_keyboard_repeat() if key_repeat: delay_ms,interval_ms = key_repeat capabilities["key_repeat"] = (delay_ms,interval_ms) capabilities["keyboard_sync"] = self.keyboard_sync and (key_repeat is not None) if self.mmap_file: capabilities["mmap_file"] = self.mmap_file capabilities["mmap_token"] = self.mmap_token capabilities["randr_notify"] = True capabilities["compressible_cursors"] = True capabilities["dpi"] = self.dpi capabilities["clipboard"] = self.client_supports_clipboard capabilities["notifications"] = self.client_supports_notifications capabilities["cursors"] = self.client_supports_cursors capabilities["bell"] = self.client_supports_bell capabilities["encoding_client_options"] = True capabilities["rgb24zlib"] = True capabilities["share"] = self.client_supports_sharing capabilities["auto_refresh_delay"] = int(self.auto_refresh_delay*1000) capabilities["windows"] = self.windows_enabled try: from wimpiggy.prop import set_xsettings_format assert set_xsettings_format capabilities["xsettings-tuple"] = True except: pass return capabilities