-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] fix: fullscreen, unfullscreen, unminise and unmaximise window events … #4130
base: v3-alpha
Are you sure you want to change the base?
Conversation
…weren't being emitted.
WalkthroughThe changes update the Windows webview window implementation by integrating event emissions into methods handling window state changes. The modifications now emit events when the window is unmaximised, enters fullscreen, exits fullscreen, and when it is restored from a minimized state. This update enhances the event-driven mechanism, providing more granular notifications of window state transitions. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as Client/UI
participant W as windowsWebviewWindow
participant EB as Event Bus
UI->>W: Trigger window state change (e.g., fullscreen)
W->>EB: Emit corresponding event (e.g., WindowFullscreen)
UI->>W: Trigger window state change (e.g., unmaximise)
W->>EB: Emit corresponding event (e.g., WindowUnMaximise)
UI->>W: Trigger window state restoration (via WndProc)
W->>EB: Emit WindowUnMinimise (if restoring from minimized)
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (1)
🪧 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
|
Thanks for opening this - it's a great start. I think next we will need to update |
I think the events are mapped somehow because when I tested in the frontend part when |
@leaanthony The events seem to be mapped perfectly. the common events are emitted when emitting specefic platform window events. |
…weren't being emitted.
Description
Fix events fullscreen, unfullscreen, unminimise and unmaximise not being emitted.
Fixes # (issue)
Type of change
Please select the option that is relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using
wails doctor
.If you checked Linux, please specify the distro and version.
Test Configuration
Please paste the output of
wails doctor
. If you are unable to run this command, please describe your environment in as much detail as possible.Checklist:
website/src/pages/changelog.mdx
with details of this PRSummary by CodeRabbit
New Features
Bug Fixes