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

Window resize blocks events polling on macos #391

Open
gliheng opened this issue Dec 15, 2018 · 1 comment
Open

Window resize blocks events polling on macos #391

gliheng opened this issue Dec 15, 2018 · 1 comment

Comments

@gliheng
Copy link

gliheng commented Dec 15, 2018

When window is resized on macos, event polling api is blocked. According to this
glfw/glfw#408, it may be solved by redraw inside window refresh callback, when window is resizing. But I cannot pull it off the event loop, with a loop like this

while !window.should_close() {
    glfw.wait_events_timeout(1.0/60.0);

    for (_, event) in glfw::flush_messages(&events) {
        handle_window_event(window, event);
    }
}

Since it's blocked on wait_events or poll_events, callbacks are processed by this eventloop.

@CenTdemeern1
Copy link

This doesn’t seem to be macOS-exclusive. It also seems to be the case on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants