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

feat: Add --dialog-dim #6

Merged
merged 15 commits into from
Aug 13, 2023
Merged

feat: Add --dialog-dim #6

merged 15 commits into from
Aug 13, 2023

Conversation

donovanglover
Copy link
Owner

Resolves #2.

Note that checking for `not floating -> floating` results in
inconsistent behavior when the floating state is toggled, so
an all-or-nothing approach seems ideal here.

The commented lines are me keeping track of the last_floating
state so I can reference this commit later if I need to.
This fixes an issue where dialogs wouldn't be dimmed in workspaces that
only have one window (or a fullscreen window).
This makes it possible to increase the dim for dialog boxes.
This makes things easier to remember even though the code isn't
exclusive to dialogs.
When setting dialog-dim, it is implied that the user may or may not want
to set the dialog-strength as well. Furthermore, the usage of dim-strength
by its own wasn't very useful.
@donovanglover donovanglover merged commit 4e04865 into master Aug 13, 2023
6 checks passed
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.

Handle dialog events
1 participant