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

Last app from previous workspace is displayed in focused module when you switch to empty workspace on Hyprland #339

Closed
kepi opened this issue Oct 19, 2023 · 2 comments · Fixed by #340
Labels
bug Something isn't working

Comments

@kepi
Copy link

kepi commented Oct 19, 2023

Describe the bug

Just follow up for issue fixed in #337. This happens when I have one empty workspace and some workspace with window. When I'm on workspace with window and switch to empty workspace, there is still title of last app in focused module.

To Reproduce

  1. start new hyprland session with ironbar with focused module on
  2. open any app with title
  3. switch to empty workspace

Expected behavior

I expect focused module to be empty or dissappear on empty workspace.

System information:

  • Distro: Arch Linux
  • Compositor: Hyprland
  • Ironbar version: v0.13.0.r89.g08e354e-1

Configuration

Config
center:
  - type: focused
    icon_size: 16
    truncate:
      mode: start
@JakeStanger
Copy link
Owner

Thanks for reporting, I completely missed that when testing.

I've just pushed a fix up on #340 that hopefully squashes it. I'm pretty sure Wayland should return results in the same order every time, but it does risk a race condition since the label is now cleared every time a window loses focus.

If you get a chance, can you give that branch a test and see if it seems reliable please? I'll be doing the same and if all seems good I'll merge in the next couple of days.

@kepi
Copy link
Author

kepi commented Oct 24, 2023

Sorry, I had been away from computer most days. Just testing current git and works without any problem, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants