On Mon Jun 3 13:07:16 2024 +0000, Emil Velikov wrote:
If it were me, I would make this a bool to indicate if we allocated it or not. Then reduce the pointer setting/scrubbing
Yeah it's a bit messy, though I hope it could be simplified in the future. I'll try to make it a bit better.
Ultimately I would like to create NT sections first, and then allocate the HBITMAP, and XSHM image from it when possible, but it looks like the only way to do that is through the XCB API, for `xcb_shm_attach_fd`, as Xlib will only let us use the old `shmget`/`shmat` API.
This would be the first case where we would need XCB in Wine, and although I see plenty of reasons to move to XCB, I'm not sure how to do introduce it properly and whether it's worth it just for that.