Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] better resize control on Mac OS X #108

Open
Oktosha opened this issue May 24, 2023 · 0 comments
Open

[REQUEST] better resize control on Mac OS X #108

Oktosha opened this issue May 24, 2023 · 0 comments
Labels
Request New feature or request Stale (Low Priority) Dusty as hell, nothing has happened...

Comments

@Oktosha
Copy link

Oktosha commented May 24, 2023

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 glfw/glfw#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.

@W2Wizard W2Wizard added the Request New feature or request label May 25, 2023
@W2Wizard W2Wizard added the Stale (Low Priority) Dusty as hell, nothing has happened... label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request New feature or request Stale (Low Priority) Dusty as hell, nothing has happened...
Projects
None yet
Development

No branches or pull requests

2 participants