Skip to content

Commit

Permalink
#489: make it possible for the client to specify 'window-filters' as …
Browse files Browse the repository at this point in the history
…part of its hello packet, so it will only receive the windows it is interested in (this feature is not currently used in the client)

git-svn-id: https://xpra.org/svn/Xpra/trunk@10788 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 10, 2015
1 parent 0269d2d commit bc36240
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xpra/server/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,13 @@ def parse_batch_int(value, varname):
log("windows/pixels forwarding is disabled for this client")
else:
self.parse_encoding_caps(c)
#window filters:
try:
for object_name, property_name, operator, value in c.listget("window-filters"):
self.add_window_filter(object_name, property_name, operator, value)
except Exception as e:
log.error("Error parsing window-filters: %s", e)


def parse_encoding_caps(self, c):
self.set_encoding(c.strget("encoding", None), None)
Expand Down

0 comments on commit bc36240

Please sign in to comment.