From 5b2b0f68bb998748007301b16e2666e540b33770 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 27 May 2018 04:55:18 +0000 Subject: [PATCH] don't recreate window models if window forwarding is disabled git-svn-id: https://xpra.org/svn/Xpra/trunk@19484 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/server/shadow/gtk_shadow_server_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xpra/server/shadow/gtk_shadow_server_base.py b/src/xpra/server/shadow/gtk_shadow_server_base.py index aee114aa5c..0aa35cdc11 100644 --- a/src/xpra/server/shadow/gtk_shadow_server_base.py +++ b/src/xpra/server/shadow/gtk_shadow_server_base.py @@ -4,8 +4,6 @@ # Xpra is released under the terms of the GNU GPL v2, or, at your option, any # later version. See the file COPYING for details. -import os - from xpra.log import Logger traylog = Logger("tray") mouselog = Logger("mouse") @@ -101,7 +99,9 @@ def refresh(self): def send_updated_screen_size(self): log("send_updated_screen_size") GTKServerBase.send_updated_screen_size(self) - self.recreate_window_models() + from xpra.server import server_features + if server_features.windows: + self.recreate_window_models() def recreate_window_models(self): #remove all existing models and re-create them: