mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 12:34:00 +00:00
68f01e2424
Fixes an upstream bug (python-xlib/python-xlib#207). Without this patch, streamdeck-ui breaks on NixOS systems running GNOME on Xorg.
14 lines
438 B
Diff
14 lines
438 B
Diff
diff --git a/Xlib/xauth.py b/Xlib/xauth.py
|
|
index 2ed7dd5..303bd49 100644
|
|
--- a/Xlib/xauth.py
|
|
+++ b/Xlib/xauth.py
|
|
@@ -120,6 +120,8 @@ class Xauthority(object):
|
|
matches = {}
|
|
|
|
for efam, eaddr, enum, ename, edata in self.entries:
|
|
+ if enum == b'' and ename not in matches:
|
|
+ enum = num
|
|
if efam == family and eaddr == address and num == enum:
|
|
matches[ename] = edata
|
|
|