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 ipc fixes: wrong workspace highlighted with waybar #275

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

TibboddiT
Copy link
Contributor

I saw that #255 was closed, but I still experience this issue.
In case it matters, I experienced it while launching miraclewm with WAYLAND_DISPLAY=wayland-98 miracle-wm

This PR fixes it.

AFAICT there were essentially 3 problems:

  • old property on IPC_EVENT_WORKSPACE event with type focus was wrong
  • set_is_active was not called on output after it was set to state.active_output
  • focused was true for containers on not visible workspaces and false for all workspaces because root->is_focused() is always false

Feel free to not prioritize review/merge or to close this PR according to your current workload.

@mattkae
Copy link
Collaborator

mattkae commented Oct 31, 2024

Thanks for this fix! Do you think that you could re-merge develop onto you branch before I test it out? I just fixed waybar (again) and don't want anything that could mess it up

@mattkae mattkae self-requested a review October 31, 2024 14:29
Copy link
Collaborator

@mattkae mattkae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well for me, thanks for the pr! And it uncovered a new bug for us #277 😉

@mattkae mattkae merged commit 9b186b0 into miracle-wm-org:develop Oct 31, 2024
2 checks passed
@TibboddiT TibboddiT deleted the sway-ipc-fixes branch October 31, 2024 14:46
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.

2 participants