diff options
Diffstat (limited to 'src/twm.c')
-rw-r--r-- | src/twm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -474,7 +474,11 @@ main(int argc, char *argv[]) if (DisplayCells(dpy, scrnum) < 3) Scr->Monochrome = MONOCHROME; +#if defined(__cplusplus) || defined(c_plusplus) + else if (DefaultVisual(dpy, scrnum)->c_class == GrayScale) +#else else if (DefaultVisual(dpy, scrnum)->class == GrayScale) +#endif Scr->Monochrome = GRAYSCALE; else Scr->Monochrome = COLOR; |