Skip to content

On macOS the frame size could change without window resize #2191

@kchibisov

Description

@kchibisov

If you're using multiple windows and do tabbing for them the the of the frame could change without size of the window being changed, leading to winit not issuing resize events for the windows in tab group. So winit should send resize event when the frame changes as well, and not only when the window gets resized.

I'm not familiar with macOS API, however I could say that the frame rect we get in

extern "C" fn frame_did_change(this: &Object, _sel: Sel, _event: id) {
is absolutely correct. And window_did_resize method on window delegate don't get called at all.

@madsmtm Do you known something about it? Seems like something that could be easily fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - appkitAffects the AppKit/macOS backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions