Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* remove duplicated var (did not belong in client-display)
* re-init vars during cleanup

git-svn-id: https://xpra.org/svn/Xpra/trunk@18590 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 25, 2018
1 parent e43df13 commit d695512
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/xpra/server/source/clientdisplay_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
class ClientDisplayMixin(StubSourceMixin):

def __init__(self):
self.init_vars()

def cleanup(self):
self.init_vars()

def init_vars(self):
self.icc = {}
self.display_icc = {}
self.randr_notify = False
Expand All @@ -29,9 +35,6 @@ def __init__(self):
self.desktop_names = ()
self.show_desktop_allowed = False

def cleanup(self):
pass

def get_info(self):
info = {
"desktop_size" : self.desktop_size or "",
Expand All @@ -42,8 +45,6 @@ def get_info(self):
info.update(get_screen_info(self.screen_sizes))
if self.desktop_mode_size:
info["desktop_mode_size"] = self.desktop_mode_size
if self.client_connection_data:
info["connection-data"] = self.client_connection_data
if self.desktop_size_unscaled:
info["desktop_size"] = {"unscaled" : self.desktop_size_unscaled}
return info
Expand Down
6 changes: 6 additions & 0 deletions src/xpra/server/source/clientinfo_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
class ClientInfoMixin(StubSourceMixin):

def __init__(self):
self.init_vars()

def cleanup(self):
self.init_vars()

def init_vars(self):
self.uuid = ""
self.machine_id = ""
self.hostname = ""
Expand Down

0 comments on commit d695512

Please sign in to comment.