Skip to content

Commit

Permalink
better warning message if the server doesn't forward windows (message…
Browse files Browse the repository at this point in the history
… used to be about 'auto-refresh' instead)

git-svn-id: https://xpra.org/svn/Xpra/trunk@19376 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 23, 2018
1 parent 6651dde commit 26c8b2a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/xpra/client/mixins/window_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 26c8b2a

Please sign in to comment.