Repository navigation
Clear bar input mask under fullscreen windows on Hyprland 0.56+ - #120
Open
luciano-sparti wants to merge 1 commit into
Open
luciano-sparti wants to merge 1 commit into
luciano-sparti wants to merge 1 commit into
Conversation
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
On Hyprland 0.56+, a fullscreen window visually fades out
WlrLayer.Topbars, 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. Becauseshibumi-barunconditionally keptmask: 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):hancore.shibumi.bar/core/FullscreenInput.jswithfullscreenOn(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.hancore.shibumi.bar/core/BarPanel.qmlto compute per-screenunderFullscreenviaHyprland.monitorFor(screen)and switchmaskbetweennoInputRegion(Region {}) whenunderFullscreen && !dragSession.editingandstripInputRegion(Region { item: barSurfaceLoader }) otherwise.hancore.shibumi.bar/Bar.qmlto callHyprland.refreshToplevels()on Hyprlandfullscreenraw events (while!root.shutdownPrepared), since Quickshell's toplevel snapshot does not refresh fullscreen flags on its own.tests/fullscreen-input-regression.qmland update the bar mask contract assertions intests/contract-regression.shandtests/style-contract-regression.sh.Affected plugins
hancore.shibumi.barChecks
git diff --check— passedQT_QPA_PLATFORM=offscreen /usr/lib/qt6/bin/qml ./tests/fullscreen-input-regression.qml— passedpython3 ./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— passedOMARCHY_PATH=/usr/share/omarchy ./tests/contract-regression.shandpython3 ./tests/test_shibumi_suite.py— passed all checks up to the expectedpublic-0.2.7release payload digest pin (test_lifecycle_contract_pins_exact_release_identities/require_current_payload_identity), sincehancore.shibumi.barwas modified on top of the published0.2.7release without altering the published release identity.Live UI evidence
Tested on Arch Linux / Omarchy
4.5.0-3, Hyprland0.56.2-4, Quickshell0.3.2.r7.g2b4501a-1(1920x1200@165Hz, single monitoreDP-2) with Skyrim Special Edition (steam_app_489830,fullscreen: 2, XWayland):shibumi-barstrip instead of focusing the game window.hancore.shibumi.barand restartingomarchy-shell,shibumi-barreloaded 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
tests/fullscreen-input-regression.qml, not on physical multi-monitor hardware.