commit 47ae560e0671f0ceb3aeec8ded95c76db6374596
parent 84916ffb83e2e6828df252f7e5de2f95f900d347
Author: Matsuda Kenji <info@mtkn.jp>
Date: Wed, 17 Dec 2025 08:40:47 +0900
add colormap, success
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/win32.c b/win32.c
@@ -30,15 +30,19 @@ int main(void) {
fatal("32bit-deep visual info not found");
}
+ Colormap colormap32 = XCreateColormap(display, DefaultRootWindow(display), vi32.visual, AllocNone);
+
XSetWindowAttributes attr32 = {
.border_pixel = 0,
+ .colormap = colormap32,
};
Window window32 = XCreateWindow(display, DefaultRootWindow(display),
0, 0, 1, 1, 0,
32,
InputOutput,
vi32.visual,
- CWBorderPixel, &attr32);
+ CWBorderPixel|CWColormap,
+ &attr32);
XSync(display, window);
int quit = 0;