Skip to content

Commit

Permalink
#3476 try to load the XRes bindings just once
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 15, 2022
1 parent ff4413b commit f934f46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xpra/x11/shadow_x11_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
log = Logger("x11", "shadow")

XImage = XImageBindings()
XRes = ResBindings()
if not XRes.check_xres():
XRes = None
wb = X11WindowBindings()

USE_XSHM = envbool("XPRA_XSHM", True)
POLL_CURSOR = envint("XPRA_POLL_CURSOR", 20)
Expand All @@ -53,10 +57,6 @@ def window_matches(wspec, model_class):
else:
skip_children = True
with xsync:
XRes = ResBindings()
if not XRes.check_xres():
XRes = None
wb = X11WindowBindings()
allw = [wxid for wxid in wb.get_all_x11_windows() if
not wb.is_inputonly(wxid) and wb.is_mapped(wxid)]
class wrap():
Expand Down

0 comments on commit f934f46

Please sign in to comment.