slim: fix build with gcc>=11

This commit is contained in:
Duncaen 2022-10-09 20:28:33 +02:00
parent 16e9cbb43c
commit 6721e0199e
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -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);