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

sway/workspaces: Correct behavior when "current-only" is set #3336

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

pjones
Copy link
Contributor

@pjones pjones commented Jun 6, 2024

The current-only workspace setting should display only the active workspace name as determined by its focused attribute. However, according to the get_tree output, workspaces that contain a focused window will report "focused": false and the window will report "focused": true. In this case, Waybar will not display a workspace name at all.

This change updates the logic for determining if a workspace is focused by also looking for a focused window.

The `current-only` workspace setting should display only the active
workspace name as determined by its `focused` attribute.  However,
according to the `get_tree` output, workspaces that contain a focused
window will report `"focused": false` and the window will report
`"focused": true.` In this case, Waybar will not display a workspace
name at all.

This change updates the logic for determining if a workspace is
focused by also looking for a focused window.
@Alexays Alexays merged commit f4da203 into Alexays:master Jun 7, 2024
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.

None yet

2 participants