summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c
index f8a5207..585ae16 100644
--- a/src/events.c
+++ b/src/events.c
@@ -391,7 +391,11 @@ HandleColormapNotify(void)
cmap = cwin->colormap;
+#if defined(__cplusplus) || defined(c_plusplus)
+ if (cevent->c_new) {
+#else
if (cevent->new) {
+#endif
if (XFindContext(dpy, cevent->colormap, ColormapContext,
&context_data) == XCNOENT)
cwin->colormap = CreateTwmColormap(cevent->colormap);