diff options
author | Tim Wiederhake <twied@gmx.net> | 2023-12-30 20:49:48 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-21 13:14:37 +0100 |
commit | 7fe0acdb259c7dd9f3b6214ba16f272da81beadb (patch) | |
tree | a00c6043ba6df53a4dc99d022bbdfc53f90312f3 /src/events.c | |
parent | abd6ec6e468a067ea072fee9e8ba0303c1e95a2e (diff) |
Accomodate different field names when compiling with c++
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 4 |
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); |