have pointer mask

This commit is contained in:
NishiOwO 2025-04-10 02:04:25 +09:00
parent 6dc6db1f9c
commit 2258dc1e77
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343

View File

@ -97,7 +97,7 @@ void ne_draw_platform_create(ne_draw_t* draw) {
}
attr.colormap = XCreateColormap(draw->platform->display, root, visual->visual, AllocNone);
attr.event_mask = StructureNotifyMask | ExposureMask;
attr.event_mask = StructureNotifyMask | ExposureMask | PointerMotionMask;
draw->platform->window = XCreateWindow(draw->platform->display, root, draw->width, draw->height, draw->width, draw->height, 0, visual->depth, InputOutput, visual->visual, CWColormap | CWEventMask, &attr);
hints.x = draw->x;