Add config options for exclusive zone and input event passthrough #1113
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.
So I sneakily added the
overlay
layer value in one of the previous PRs, but it wasn't behaving as a realoverlay
mode ofswaybar
. Here's the two missing bits: input passthrough flag that makes the bar ignore any pointer events and allows the window underneath to handle those, and a flag to disable the exclusive zone.Possible uses:
bottom
layer with"exclusive": false
which is only visible on an empty workspace.overlay
ortop
layer which shows some data over the application window, but cannot be interacted with.hide
mode (the one where you only see a bar when the binding is pressed), it actually does not set exclusive zone but still accepts input.Now we can get almost similar behavior with creative use of
bindsym --no-repeat
,bindsym --no-repeat --release
andSIGUSR1
. With possibility of races, bar states out of sync between different screens and other wonderful bugs.Fixes #1091