Skip to content

macOS: (in window example) redundant redraw request during resizing #4517

@Random-Scientist

Description

@Random-Scientist

Description

First off, you can observe this bug in the window example, but it probably applies to any consumer that requests a redraw on SurfaceResized. I noticed it while working on a different PR.
I think this might be because our drawRect override sends a redraw request every time the window bounds change, but so does the application after receiving WindowEvent::SurfaceResized. or AppKit just calls drawRect twice for some reason.

macOS version

ProductName:    macOS
ProductVersion: 12.7.6
BuildVersion:   21H1320

Winit version

master (0b6b794)

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedDS - 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