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

On X11, cleanup event processor implementation #3471

Merged
merged 2 commits into from
Feb 10, 2024

Conversation

kchibisov
Copy link
Member

  • Tested on all platforms changed

--

I basically moved the code around, both commits should build and show what I've tried to achieve.

@kchibisov kchibisov requested a review from notgull as a code owner February 9, 2024 05:13
@kchibisov kchibisov force-pushed the kchibisov/x11-event-processor branch 2 times, most recently from 8a8f95b to 464db0f Compare February 9, 2024 05:23
Remove the redundant `Rc` to access the window target.
Make code more clear wrt explicit returns during event handling,
which may lead to skipped IME event handling.
@kchibisov kchibisov force-pushed the kchibisov/x11-event-processor branch from 464db0f to d643b1a Compare February 10, 2024 12:03
Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

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

Looks good to me! Seems like we've mostly moved code around.

return;
}

if xev.data.get_long(0) as xproto::Atom == wt.net_wm_ping {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: We should use else if instead of if.

Copy link
Member Author

Choose a reason for hiding this comment

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

it just was insanely long else if. in general i'd probably rewrite this to something else, but not right now.

@kchibisov kchibisov merged commit 273984a into master Feb 10, 2024
51 checks passed
@kchibisov kchibisov deleted the kchibisov/x11-event-processor branch February 10, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants