From 26c8b2ad00ba450c049bf343d6fbd224badfef1e Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 23 May 2018 08:18:36 +0000 Subject: [PATCH] better warning message if the server doesn't forward windows (message used to be about 'auto-refresh' instead) git-svn-id: https://xpra.org/svn/Xpra/trunk@19376 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/client/mixins/window_manager.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/xpra/client/mixins/window_manager.py b/src/xpra/client/mixins/window_manager.py index cba8f69b62..4e60869c8e 100644 --- a/src/xpra/client/mixins/window_manager.py +++ b/src/xpra/client/mixins/window_manager.py @@ -280,10 +280,13 @@ def parse_server_capabilities(self): self.default_cursor_data = c.listget("cursor.default", None) self.server_bell = c.boolget("bell") #added in 0.5, default to True! self.bell_enabled = self.server_bell and self.client_supports_bell - if self.windows_enabled: - server_auto_refresh_delay = c.intget("auto_refresh_delay", 0)/1000.0 - if server_auto_refresh_delay==0 and self.auto_refresh_delay>0: - log.warn("Warning: server does not support auto-refresh!") + if c.boolget("windows", True): + if self.windows_enabled: + server_auto_refresh_delay = c.intget("auto_refresh_delay", 0)/1000.0 + if server_auto_refresh_delay==0 and self.auto_refresh_delay>0: + log.warn("Warning: server does not support auto-refresh!") + else: + log.warn("Warning: window forwarding is not enabled on this server") self.server_window_signals = c.strlistget("window.signals") self.server_window_states = c.strlistget("window.states", ["iconified", "fullscreen", "above", "below", "sticky", "iconified", "maximized"]) self.server_window_filters = c.boolget("window-filters")