Repository navigation
fix(macos,linux): isolate macOS Dock/close-quit lifecycle and Linux Wayland presentation (v1.0.1) - #2
Merged
Merged
Conversation
…ayland presentation
Integrate PR #1 (Linux gdk_event_set_device fix) and unify v1.0.1 CHANGELOG entries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Strictly OS-isolated fixes for macOS AppKit and Linux GTK3/Wayland window lifecycle regressions discovered in v1.0.0. Zero files under
lib/src/platform/windows/ortest/windows_window_test.dartwere modified.macOS (
lib/src/platform/macos/)[X]: Wake Flutter's macOSCFRunLoop/ Dart microtask queue (Timer.run+ensureVisualUpdate/scheduleFrame) insideMacOSWindowDelegateRegistry._onWindowShouldClosewhen a close request is cancelled, so hiding the window happens immediately without waiting for the pointer to exit the close button.Regular<->Accessory): WhenMacOSWindowAdapter.hide()hides the last visible application window while an activeNSStatusItem(visibleNSStatusBarWindow) exists, switchNSApplicationtoAccessory (1)so the Dock indicator dot disappears while keeping the menu bar status item alive; restoreRegular (0)before activation onshow(),focus(), or native reopen (NSWindowDidBecomeKeyNotification).Cmd+Qtermination: Stop forwardingWidgetsBindingObserver.didRequestAppExittoWindowCloseRequestedEventon macOS and Linux (preserving WindowsWM_CLOSEforwarding), and automatically unlink single-instance Unix sockets viaNSApplicationWillTerminateNotification(MacOSAppLifecycleObserver) andApplication.quit().Linux (
lib/src/platform/linux/)gdk_window_show/gdk_window_focuscalls fromLinuxWindowAdapter._presentWindowand resolve X11 vs Wayland presentation viaresolveLinuxPresentActionso unmapped Wayland startup/restore usesgtk_window_deiconify+gtk_widget_showwithout firing prematuregtk_window_present_with_time(0).gtk_window_set_default_size+gdk_window_resizebefore map insetSize()/bounds =, delegateWindow.center()togtk_window_set_position(GTK_WIN_POS_CENTER), checkGDK_WINDOW_STATE_MAXIMIZEDalongsidegtk_window_is_maximized, and wake Flutter's run loop whendelete-eventcancels close.Verification
dart format --output=none --set-exit-if-changed .(0 changed)dart analyze --fatal-infos --fatal-warnings(root + example: 0 issues)flutter test(31/31 passed, including live macOS 27.2.1 Objective-C FFI probes)dart pub global run pana --no-warning --json(160/160, 100.0% dartdoc)dart pub publish --dry-run(0 warnings)git diff main -- lib/src/platform/windows test/windows_window_test.dart(0 lines changed)