Xpra: Ticket #60: Typo in refresh_window()

There's a typo in xpra/client.py:194 causing this error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/xpra/client.py", line 194, in refresh_window
    self._client.send_refresh(self, self._id)
TypeError: send_refresh() takes exactly 2 arguments (3 given)

Here's the fix

--- xpra/client.py	(revision 374)
+++ xpra/client.py	(working copy)
@@ -191,7 +191,7 @@
     def refresh_window(self):
         log.debug("Automatic refresh for id ", self._id)
-        self._client.send_refresh(self, self._id)
+        self._client.send_refresh(self._id)
     def refresh_all_windows(self):
         #this method is only here because we may want to fire it


Tue, 20 Dec 2011 09:32:51 GMT - Antoine Martin: status changed; resolution set

Good catch, applied in r375

Thanks!


Mon, 20 Feb 2012 19:29:29 GMT - Antoine Martin: milestone changed; version set


Sat, 23 Jan 2021 04:44:26 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/60