-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[V3] Refactor linux ignore mouse events #3721
Conversation
WalkthroughThe changes include an update to the changelog to document a fix for a Linux compile error related to mouse event handling. Additionally, modifications were made to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
Early access features: disabledWe are currently testing the following features in early access:
Note:
|
changelog.md
0eccbc3
to
baf6f7e
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (3)
- mkdocs-website/docs/en/changelog.md (1 hunks)
- v3/pkg/application/linux_cgo.go (1 hunks)
- v3/pkg/application/webview_window_linux.go (3 hunks)
Files skipped from review due to trivial changes (1)
- mkdocs-website/docs/en/changelog.md
Additional comments not posted (2)
v3/pkg/application/webview_window_linux.go (1)
377-377
: Refactoring of mouse event handling logicThe change simplifies the
setIgnoreMouseEvents
method by delegating the mouse event handling logic to theignoreMouse
method. This refactoring aims to encapsulate the complex logic for managing mouse events based on theignoreMouseEvents
property within theignoreMouse
method.The AI-generated summary suggests that this change is a part of a larger refactoring effort to improve the structure and functionality of the code related to mouse event management.
v3/pkg/application/linux_cgo.go (1)
1376-1382
: LGTM!The new
ignoreMouse
method looks good. It correctly sets the appropriate event masks on the GTK widget based on theignore
parameter to control mouse event handling.
Description
Recent changes to ignoring mouse events introduced a compile time error on linux due to using GDK C calls without access to the GDK C Lib.
This PR moves the calls to linux_cgo and adds a call to the function in the webview_window_linux.go
Fixes
Linux compile brought up in discord
Doctor
Summary by CodeRabbit
New Features
Bug Fixes
Documentation