Skip to content

Commit

Permalink
#3476 make skipping children optional
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 9, 2022
1 parent 972f794 commit 6cda08d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions xpra/x11/shadow_x11_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@


def window_matches(wspec, model_class):
wspec = list(wspec)
try:
wspec.remove("skip-children")
except ValueError:
skip_children = False
else:
skip_children = True
with xsync:
XRes = ResBindings()
if not XRes.check_xres():
Expand Down Expand Up @@ -122,8 +129,9 @@ def i(v):
continue
#log.info("added %s", hex(xid))
windows.append(xid)
children = wb.get_all_children(xid)
skip += children
if skip_children:
children = wb.get_all_children(xid)
skip += children
#for cxid in wb.get_all_children(xid):
# if cxid not in windows:
# windows.append(cxid)
Expand Down

0 comments on commit 6cda08d

Please sign in to comment.