Skip to content

Commit

Permalink
the refresh method no longer takes a window argument
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19572 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 6, 2018
1 parent 4683562 commit fa58e36
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/xpra/server/mixins/server_base_controlcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,15 +392,15 @@ def control_command_refresh(self, *wids):
return "refreshed windows %s" % str(wids)

def control_command_scaling_control(self, scaling_control, *wids):
for ws, window in self._control_windowsources_from_args(*wids).items():
for ws in tuple(self._control_windowsources_from_args(*wids).keys()):
ws.set_scaling_control(scaling_control)
ws.refresh(window)
ws.refresh()
return "scaling-control set to %s on windows %s" % (scaling_control, wids)

def control_command_scaling(self, scaling, *wids):
for ws, window in self._control_windowsources_from_args(*wids).items():
for ws in tuple(self._control_windowsources_from_args(*wids).keys()):
ws.set_scaling(scaling)
ws.refresh(window)
ws.refresh()
return "scaling set to %s on windows %s" % (str(scaling), wids)

def control_command_encoding(self, encoding, *args):
Expand All @@ -410,9 +410,9 @@ def control_command_encoding(self, encoding, *args):
strict = args[0]=="strict"
args = args[1:]
wids = args
for ws, window in self._control_windowsources_from_args(*wids).items():
for ws in tuple(self._control_windowsources_from_args(*wids).keys()):
ws.set_new_encoding(encoding, strict)
ws.refresh(window, {})
ws.refresh()
return "set encoding to %s%s for windows %s" % (encoding, ["", " (strict)"][int(strict or 0)], wids)

def control_command_clipboard_direction(self, direction, *_args):
Expand Down

0 comments on commit fa58e36

Please sign in to comment.