changes to x11 init

This commit is contained in:
Matthew 2025-12-02 06:58:10 +11:00
parent 0d7cf716ad
commit 9c541f8cf5

View File

@ -669,8 +669,8 @@ CreateWindow(PlatformWindow* window, string name, u32 width, u32 height, XVisual
{
XSetWindowAttributes attrs = {
background_pixmap: None,
background_pixel: XBlackPixel(window.display, window.screen_id),
colormap: XCreateColormap(window.display, window.root_window, visual_info.visual, AllocNone),
border_pixel: 0,
event_mask: StructureNotifyMask,
};
value_mask |= CWColormap;
@ -684,9 +684,9 @@ CreateWindow(PlatformWindow* window, string name, u32 width, u32 height, XVisual
width,
height,
0,
(visual_info ? visual_info.depth : cast(i32)copy),
visual_info.depth,
InputOutput,
(visual_info ? visual_info.visual : cast(Visual*)&copy),
visual_info.visual,
value_mask,
&attrs
);