diff --git a/pkgs/by-name/ac/ace-of-penguins/fix-wayland-segfault.patch b/pkgs/by-name/ac/ace-of-penguins/fix-wayland-segfault.patch new file mode 100644 index 000000000000..0e2d0a63aee8 --- /dev/null +++ b/pkgs/by-name/ac/ace-of-penguins/fix-wayland-segfault.patch @@ -0,0 +1,16 @@ +diff --git a/lib/help.c b/lib/help.c +--- a/lib/help.c ++++ b/lib/help.c +@@ -177,8 +177,12 @@ + for (i=0; i<17; i++) + { + if (!fonts[i]) + fonts[i] = XLoadQueryFont(display, i & STYLE_TT ? "fixed" : "variable"); ++ if (!fonts[i]) ++ fonts[i] = XLoadQueryFont(display, "fixed"); ++ if (!fonts[i]) ++ return; + thin_space[i] = XTextWidth(fonts[i], " ", 1); + } + for (i=0; i