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

fix: don't ignore mousePressEvent in SplitInput #4177

Merged
merged 4 commits into from Nov 21, 2022

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Nov 21, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

By default, a QWidget will ignore the mousePressEvent. Before #3838, SplitInput had a handler for this event and thus didn't ignore the event. But the PR removed the event handler.

This PR adds the handler back, and only calls the parent handler if the input is hidden. This has the effect that the context menu of the ResizingTextEdit is shown again, so that's what I mentioned in the changelog.

Fixes #3844.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@Felanbird Felanbird left a comment

Choose a reason for hiding this comment

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

Functionality seems correct, I alt-tabbed a bunch to see if I could re-replicate the old issue but I could not.

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

Thanks for fixing my bug!

@pajlada pajlada enabled auto-merge (squash) November 21, 2022 18:04
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@pajlada pajlada merged commit 254f89f into Chatterino:master Nov 21, 2022
@Nerixyz Nerixyz deleted the fix/rightclick branch November 21, 2022 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong context menu for chat input messages
3 participants