发布

  • fix: gate quick window patch to KDE sessions only (#393) (#406)

    frostbyte_neo 发布于 2026-04-15 22:23:27 +00:00

    • fix: gate quick window patch to KDE sessions only (#393)

    PR #390 fixed a quick-window regression on KDE but regressed GNOME/Ubuntu —
    @Andrej730 confirmed removing patch_quick_window restores quick entry on
    Ubuntu 24.04. Without a reproduction environment for GNOME yet, the safe
    minimum-viable fix is to gate the patch behind a runtime XDG_CURRENT_DESKTOP
    check: apply on KDE (where the fix is validated), fall back to upstream
    behavior everywhere else (which Ubuntu users confirmed works).

    Both halves of the patch are gated:

    • blur() before hide(): wrapped in a ternary so non-KDE sessions get the
      original unconditional hide()
    • focusFn()||show() replacement: wrapped so non-KDE sessions keep the
      original focus check instead of the visibility check

    Adds an idempotency pre-check in the node block (XDG_CURRENT_DESKTOP
    substring near the anchor) so re-runs skip cleanly. Part 1's existing
    grep idempotency still works because Q.blur(),Q.hide() appears inside
    the ternary literally.

    This is a temporary gate. VMs are being spun up to bisect which half
    actually regresses GNOME; once isolated, only that half needs the gate.

    Refs #393, #370, #404

    Co-Authored-By: Claude claude@anthropic.com

    • style: split de_check assignment to fit under 80 chars

    Matches the concatenation style already used for the node block's
    deCheck, bringing the bash literal under the style guide's line limit.
    No functional change — the expanded string is identical.

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


    Co-authored-by: Claude claude@anthropic.com
    Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

    下载附件