diff -rauN slim-1.3.6/panel.cpp slim-1.3.6-wingc-dead-code-patch/panel.cpp
--- slim-1.3.6/panel.cpp	2013-10-02 00:38:05.000000000 +0200
+++ slim-1.3.6-wingc-dead-code-patch/panel.cpp	2021-11-29 14:59:42.948388074 +0100
@@ -48,11 +48,6 @@
 		gcm = GCGraphicsExposures;
 		gcv.graphics_exposures = False;
 		WinGC = XCreateGC(Dpy, Win, gcm, &gcv);
-		if (WinGC < 0) {
-			cerr << APPNAME
-				<< ": failed to create pixmap\n.";
-			exit(ERR_EXIT);
-		}
 	}
 
 	font = XftFontOpenName(Dpy, Scr, cfg->getOption("input_font").c_str());