Repository navigation
fix(notch): scope Snipping Tool blocking and restore notch placement - #349
SehajveerSingh2005 wants to merge 1 commit into
Conversation
|
/oc review this pr |
Automated PR review — quickProvider: Google Gemini · selected model: google/gemini-3.5-flash · reported version: gemini-3.6-flash · reasoning: low · fallback chain: opencode/glm-5.3-flash-free → google/gemini-3.8-flash → google/gemini-3.5-flash · model time: 39.3s · reported tokens: 4332 input / 1368 output Reviewed commit: 0b337691. Scope: 1/1 changed files supplied; partial context. No actionable findings returned within the supplied context. This is not merge approval. Checks to run before merging:
Coverage and limitations
Static review of the supplied diff and selected head-revision source. Tests and build commands were not executed; CI, merge conflicts and runtime behavior were not independently validated. The selected provider model is reported above; its backend identity is not independently verified. |
…s variant Upstream little-systems#349 (scope Snipping Tool blocking and restore notch placement) already landed as part of the port in the fork: the notch never hides, the recording/capture toolbar hides only the notch, and the window is re-shown after the session so the full-width top placement is re-applied in every notch mode. The fork then differed in three ways: it blocked the notch when a toolbar overlapped it even with no known notch rect, and its enum proc ignored the toolbar's editor caption - a maximized editor covering the screen hid the notch. This commit pulls in the parts of little-systems#349 that fit: - capture_window_effect(): transparent recording borders and captioned editors return (false, false); selection overlays still block everything; the toolbar blocks the notch only when it overlaps it (notch.is_some_and). - capture_ui_enum_proc(): the distinction now goes through capture_window_effect, so the editor check and the new semantics land together. - A LOCATIONCHANGE WinEvent hook + early return: a moving toolbar rescans capture overlap without queueing dock rescans (the recheck flag is still set by every hook, including location ones). - update_main_interaction(): also step aside when only the notch is blocked, mirroring the fullscreen path. - Tests: capture_selection_toolbar_editor_and_recording_border_have_ distinct_effects covering the toolbar/editor/border distinctions and the no-notch case.
What does this PR do?
Bloom treated any visible Snipping Tool window as an active capture, disabling the dock and notch even for an idle editor. Separate full selection overlays from a borderless toolbar overlapping the notch. Captioned editors, including a maximized editor, and transparent recording borders do not block Bloom.
Only the overlapping notch steps aside for a toolbar; a full selection overlay retains full click-through behavior. Restore the main window to the full-width primary-monitor top placement and restore its click-through style after showing it, including smart/peek modes without an AppBar reservation. Existing interaction guards keep a blocked notch from rearming hover.
Observe top-level location changes so moving the toolbar updates overlap. Consume the existing dirty flag atomically on the system worker's next tick, removing the separate 400 ms scan throttle. Location-only events do not trigger dock app-list updates. No diagnostic logging or new delay is added.
Related issue
Fixes #265. Addresses a capture-specific cause relevant to #293; does not claim to resolve all unresponsive-surface reports.
Builds on the scoped blocking approach in #249 and placement-restoration approach in #273 / local commit
784db27. Those are overlapping alternatives and should be reconciled before merging them too.How was this tested?
This branch alone on main: cargo check and 75 Rust tests passed, with one existing test ignored. Tests cover selection overlays, an overlapping toolbar, editor away from the notch, maximized editor, missing notch geometry, transparent recording border and secondary-monitor geometry.
Follow-up Windows UI checks on the committed combined build passed: idle editor, maximized editor with the fixed notch still visible, canceled rectangular selection, and completed fullscreen screenshot covering both displays. The dock and notch recovered afterward. Remaining manual coverage: recording-toolbar movement, capture recovery in smart/peek notch modes, and selecting captures specifically on a secondary display. Keep this PR draft until that remaining capture coverage is complete.
All five fixes were also assembled with settings PR #343 on
codex/bugfix-validation-reviewed: frontend build, 46 frontend tests, cargo check, clippy (existing warnings only), and 78 Rust tests passed; one existing desktop-dependent test remains ignored. No dependencies or release versions changed.Checklist