[GH-ISSUE #339] Last app from previous workspace is displayed in focused module when you switch to empty workspace on Hyprland #4348

Closed
opened 2026-05-23 00:52:46 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @kepi on GitHub (Oct 19, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/339

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

Originally created by @kepi on GitHub (Oct 19, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/339 **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** <details><summary>Config</summary> ```yaml center: - type: focused icon_size: 16 truncate: mode: start ``` </details>
JakeStanger 2026-05-23 00:52:46 +01:00
  • closed this issue
  • added the
    T:Bug
    label
Author
Owner

@JakeStanger commented on GitHub (Oct 19, 2023):

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.

<!-- gh-comment-id:1771749975 --> @JakeStanger commented on GitHub (Oct 19, 2023): 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.
Author
Owner

@kepi commented on GitHub (Oct 24, 2023):

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

<!-- gh-comment-id:1777789467 --> @kepi commented on GitHub (Oct 24, 2023): Sorry, I had been away from computer most days. Just testing current git and works without any problem, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#4348
No description provided.