Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config options for exclusive zone and input event passthrough #1113

Merged
merged 3 commits into from
May 22, 2021

Conversation

alebastr
Copy link
Contributor

So I sneakily added the overlay layer value in one of the previous PRs, but it wasn't behaving as a real overlay mode of swaybar. 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:

  • A bar on the bottom layer with "exclusive": false which is only visible on an empty workspace.
  • A transparent bar on the overlay or top layer which shows some data over the application window, but cannot be interacted with.
  • If you look closely at the swaybar 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 and SIGUSR1. With possibility of races, bar states out of sync between different screens and other wonderful bugs.

Fixes #1091

@Alexays
Copy link
Owner

Alexays commented May 22, 2021

Thanks again @alebastr ❤️
Can you update the Github wiki with these man changes?

@Alexays Alexays merged commit 94a882b into Alexays:master May 22, 2021
@alebastr alebastr deleted the exclusive-and-passthrough branch May 22, 2021 14:20
@alebastr
Copy link
Contributor Author

Can you update the Github wiki with these man changes?

Updated.

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.

Non exclusive bar.
2 participants