Skip to content

Resize events aren't delivered on OS X #88

Closed
@mitchmindtree

Description

@mitchmindtree

Here's the relevant issue in glutin. I've only confirmed this on OS X 10.10.

The reason for this seems to be that cocoa (via glutin) requires that the user declares a resize_callback for resizing the window, rather than emitting an event as for all other events.

Events are blocked during resize on OS X within cocoa itself. Cocoa also requires that GL rendering occurs on the main thread (at least I'm pretty sure). I'm unsure whether or not events could be polled from a thread other than the main thread. Either way, any multi-threaded solutions are probably too heavy-weight for this lib or glutin.

For now, I guess we could have a special case for OS X where we create our own Resize events by comparing window sizes as @bvssvni suggests here, however this will only provide the event after the mouse is released and the event loop is unblocked, meaning that we still won't have live Resize or Render events during resizing.

I don't have any great solutions for this yet, just thought I'd post an issue to keep track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions