summaryrefslogtreecommitdiffstats
path: root/system/slim/patches/slim-1.3.6-gcc11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/slim/patches/slim-1.3.6-gcc11.patch')
-rw-r--r--system/slim/patches/slim-1.3.6-gcc11.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/slim/patches/slim-1.3.6-gcc11.patch b/system/slim/patches/slim-1.3.6-gcc11.patch
new file mode 100644
index 0000000000..a6b07c6377
--- /dev/null
+++ b/system/slim/patches/slim-1.3.6-gcc11.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/786498
+--- a/panel.cpp
++++ b/panel.cpp
+@@ -48,7 +48,7 @@
+ gcm = GCGraphicsExposures;
+ gcv.graphics_exposures = False;
+ WinGC = XCreateGC(Dpy, Win, gcm, &gcv);
+- if (WinGC < 0) {
++ if (WinGC == 0) {
+ cerr << APPNAME
+ << ": failed to create pixmap\n.";
+ exit(ERR_EXIT);