summaryrefslogtreecommitdiff
path: root/x11/slim/patches/patch-panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/slim/patches/patch-panel.cpp')
-rw-r--r--x11/slim/patches/patch-panel.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/slim/patches/patch-panel.cpp b/x11/slim/patches/patch-panel.cpp
new file mode 100644
index 00000000000..ba64c6cf39e
--- /dev/null
+++ b/x11/slim/patches/patch-panel.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-panel.cpp,v 1.1 2018/06/02 16:46:50 jmcneill Exp $
+
+--- panel.cpp.orig 2013-10-01 22:38:05.000000000 +0000
++++ panel.cpp
+@@ -48,7 +48,7 @@ Panel::Panel(Display* dpy, int scr, Wind
+ gcm = GCGraphicsExposures;
+ gcv.graphics_exposures = False;
+ WinGC = XCreateGC(Dpy, Win, gcm, &gcv);
+- if (WinGC < 0) {
++ if ((intptr_t)WinGC < 0) {
+ cerr << APPNAME
+ << ": failed to create pixmap\n.";
+ exit(ERR_EXIT);