Skip to content

Move all events from MainEventsCleared to RedrawEventsCleared to prevent all jobs from running when window is minimized #5237

Closed
@heavyrain266

Description

@heavyrain266

What problem does this solve or what need does it fill?

From observation while working with winit, MainEventsCleared seems to be executing code when window is minimized which crashes your vulkan/wgpu application. When you move all calls to RedrawEventsCleared, renderer is not running while window is minimized and no longer crashes your program.

What solution would you like?

Move function calls from MainEventsCleared to RedrawEventsCleared or similiar.

What alternative(s) have you considered?

None

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions