summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xxkb/files/missing_init.patch')
-rw-r--r--x11-misc/xxkb/files/missing_init.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-misc/xxkb/files/missing_init.patch b/x11-misc/xxkb/files/missing_init.patch
new file mode 100644
index 000000000000..56f9e8ff53a1
--- /dev/null
+++ b/x11-misc/xxkb/files/missing_init.patch
@@ -0,0 +1,22 @@
+--- a/xxkb.c
++++ b/xxkb.c
+@@ -667,12 +667,14 @@
+ Window rwin, parent, *children;
+ int num;
+
+- XQueryTree(dpy, temp_win, &rwin, &parent, &children, &num);
+- AddWindow(temp_win, parent);
++ if (XQueryTree(dpy, temp_win, &rwin, &parent, &children, &num) != 0)
++ {
++ AddWindow(temp_win, parent);
+
+- if (children != None) {
+- XFree(children);
+- }
++ if (children != None) {
++ XFree(children);
++ }
++ }
+ }
+ break;
+