Skip to content

Clear bar input mask under fullscreen windows on Hyprland 0.56+ - #120

Open
luciano-sparti wants to merge 1 commit into
HANCORE-linux:mainfrom
luciano-sparti:fix/fullscreen-bar-input-mask
Open

luciano-sparti wants to merge 1 commit into
HANCORE-linux:mainfrom
luciano-sparti:fix/fullscreen-bar-input-mask

Conversation

@luciano-sparti

Copy link
Copy Markdown

Summary

On Hyprland 0.56+, a fullscreen window visually fades out WlrLayer.Top bars, but Hyprland can lift top-layer surfaces back above fullscreen for pointer hit-testing after events such as switching workspaces, Alt+Tabbing, another window leaving fullscreen, or a layer remap. Because shibumi-bar unconditionally kept mask: Region { item: barSurfaceLoader }, the invisible top strip intercepted clicks meant for the fullscreen window (for example when trying to refocus or click near the top of a fullscreen game).

This matches the workaround in Omarchy's stock bar (omarchy.bar):

  • Add hancore.shibumi.bar/core/FullscreenInput.js with fullscreenOn(toplevels, workspaceId), checking for real fullscreen windows ((Number(ipc.fullscreen) & 2) !== 0) on the active workspace while ignoring maximized windows (fullscreen === 1) and other workspaces.
  • Update hancore.shibumi.bar/core/BarPanel.qml to compute per-screen underFullscreen via Hyprland.monitorFor(screen) and switch mask between noInputRegion (Region {}) when underFullscreen && !dragSession.editing and stripInputRegion (Region { item: barSurfaceLoader }) otherwise.
  • Update hancore.shibumi.bar/Bar.qml to call Hyprland.refreshToplevels() on Hyprland fullscreen raw events (while !root.shutdownPrepared), since Quickshell's toplevel snapshot does not refresh fullscreen flags on its own.
  • Add tests/fullscreen-input-regression.qml and update the bar mask contract assertions in tests/contract-regression.sh and tests/style-contract-regression.sh.

Affected plugins

  • hancore.shibumi.bar

Checks

  • git diff --check — passed
  • QT_QPA_PLATFORM=offscreen /usr/lib/qt6/bin/qml ./tests/fullscreen-input-regression.qml — passed
  • python3 ./tests/plugin-import-boundary.py ./hancore.shibumi.bar — passed
  • ./tests/style-contract-regression.sh — passed
  • ./tests/bar-host-registry-regression.sh — passed
  • ./tests/panel-window-geometry-regression.sh — passed
  • ./tests/window-recovery-regression.sh — passed
  • ./tests/plugin-self-containment-regression.sh — passed
  • ./tests/plugin-suite-contract-regression.sh — passed
  • ./tests/host-facade-contract-regression.sh — passed
  • OMARCHY_PATH=/usr/share/omarchy ./tests/contract-regression.sh and python3 ./tests/test_shibumi_suite.py — passed all checks up to the expected public-0.2.7 release payload digest pin (test_lifecycle_contract_pins_exact_release_identities / require_current_payload_identity), since hancore.shibumi.bar was modified on top of the published 0.2.7 release without altering the published release identity.

Live UI evidence

Tested on Arch Linux / Omarchy 4.5.0-3, Hyprland 0.56.2-4, Quickshell 0.3.2.r7.g2b4501a-1 (1920x1200@165Hz, single monitor eDP-2) with Skyrim Special Edition (steam_app_489830, fullscreen: 2, XWayland):

  • Before the patch, Alt+Tabbing or switching workspaces away and returning to fullscreen Skyrim caused clicks to pass through the game into the invisible shibumi-bar strip instead of focusing the game window.
  • After applying the patch to hancore.shibumi.bar and restarting omarchy-shell, shibumi-bar reloaded cleanly and clicks no longer hit the hidden bar after Alt+Tab or workspace switches, while normal non-fullscreen and maximized bar interaction remained intact.

Remaining physical gate

  • Multi-monitor live testing and bottom/vertical bar positions under fullscreen were verified only via per-screen binding inspection and tests/fullscreen-input-regression.qml, not on physical multi-monitor hardware.
  • Maintainer release-identity refresh (when cutting the next release version) remains outside this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant