Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more specific error RequestIgnored #3481

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Feb 9, 2024

Split out from #3067.

  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior

@madsmtm madsmtm added S - api Design and usability S - maintenance Repaying technical debt labels Feb 9, 2024
///
/// See [`InnerSizeWriter::request_inner_size`] for details.
#[derive(Debug, Clone)] // Explicitly not other traits, in case we want to extend it in the future
pub struct RequestIgnored {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kchibisov asked in #3067 (comment):

What's the reason this error is here and not on the window for example?

Because it's specific to InnerSizeWriter, which is also in this module.

src/event.rs Outdated Show resolved Hide resolved
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really specific to this particular situation, sometimes it happens on X11 when setting something, e.g. locking.

In general we should have something like

error WindowError {
    NotSupported,
    RequestIgnored,
    // etc...
}

We can leave it for 0.31, given that the a lot of weird hack like this one will be gone and it'll be more clear what to put into errors, once folks look into what their backends can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S - api Design and usability S - maintenance Repaying technical debt
Development

Successfully merging this pull request may close these issues.

None yet

3 participants