MLX42 icon indicating copy to clipboard operation
MLX42 copied to clipboard

[REQUEST] better resize control on Mac OS X

Open Oktosha opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I want to create smooth resize experience on Mac OS X.

Describe the solution you'd like I want mlx_resize_callback redraw everything after executing my hook.

Describe alternatives you've considered I wanted to call force-redraw from my hook myself, but I can't do it using only MLX42 public functions.

Additional context When resizing the window on OS X, glfw.PollEvents() blocks and does not return until the user releases mouse button to stop resizing https://github.com/glfw/glfw/issues/408 MLX42 only redraws in its main loop, so no update is possible while the loop is blocked by resizing. So on resize one gets distorted image and can't do anything about it.

Oktosha avatar May 24 '23 20:05 Oktosha