Skip to content

Commit

Permalink
initialize rfb server early, it doesn't use command line options
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19469 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 26, 2018
1 parent f962979 commit 0e13056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xpra/server/rfb/rfb_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""
class RFBServer(object):

def init(self):
def __init__(self):
self.readonly = False
self.rfb_buttons = 0
self.x11_keycodes_for_keysym = {}
Expand Down
2 changes: 1 addition & 1 deletion src/xpra/x11/desktop_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ class XpraDesktopServer(gobject.GObject, RFBServer, X11ServerBase):

def __init__(self):
gobject.GObject.__init__(self)
RFBServer.__init__(self)
X11ServerBase.__init__(self)
self.session_type = "desktop"
self.resize_timer = None
self.resize_value = None

def init(self, opts):
X11ServerBase.init(self, opts)
RFBServer.init(self)
if not parse_bool("rfb-upgrade", opts.rfb_upgrade):
self._rfb_upgrade = 0
else:
Expand Down

0 comments on commit 0e13056

Please sign in to comment.