summaryrefslogtreecommitdiff
blob: a6b07c637780afc84dd0f6cd1c834f133dbfd8f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);