rust-windowing / rust-windowing/winit

Allow some events to perform cancellation.

Open
#3,349 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S - enhancement
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

For example, in the WindowEvent::Resized method, if the calculation result does not meet my requirements or settings. I can cancel the execution of this event by returning false or other methods.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WindowEvent::Resized method and trace how event results are currently handled in the winit windowing API. Clarify which events should be cancellable, how cancellation should be represented, and what behavior the API should guarantee before identifying the required tests. Done means the cancellation design is agreed and its behavior is covered across the affected event paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.