From 6cda08dfa9df0b0dedd2120e6190adb24d7e71a4 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 9 Mar 2022 17:23:06 +0700 Subject: [PATCH] #3476 make skipping children optional --- xpra/x11/shadow_x11_server.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xpra/x11/shadow_x11_server.py b/xpra/x11/shadow_x11_server.py index fd9a40d5da..36058679af 100755 --- a/xpra/x11/shadow_x11_server.py +++ b/xpra/x11/shadow_x11_server.py @@ -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(): @@ -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)