mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[PR #1496] fix(workspaces): clear stale .visible class on cross-monitor focus #1406
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#1406
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/1496
Author: @orestisfl
Created: 5/20/2026
Status: 🔄 Open
Base:
master← Head:fix/workspaces-stale-visible-on-focus📝 Commits (1)
d155336fix(workspaces): clear stale.visibleclass on cross-monitor focus📊 Changes
2 files changed (+45 additions, -5 deletions)
View changed files
📝
src/modules/workspaces/button.rs(+21 -2)📝
src/modules/workspaces/mod.rs(+24 -3)📄 Description
Compositors only emit a
Focusevent for the (old, new) workspace pair, so a third workspace which was visible on the newly-focused output would keep its.visibleCSS class indefinitely.No known issue.
See video with before/after:
https://github.com/user-attachments/assets/f5aa39df-9422-401a-a119-f930ffddc98d
My ironbar style.css differentiates button colors between visible, focused and hidden. You can see the colors change as I focus the other monitor (not visible in recording).
Before: As I switch to the second monitor, the buttons of the first switch to the visible state color. However, when I switch back to the main monitor to a different workspace, they never lose their "visible" status.
After: Switching to a different workspace in the first monitor updates the other buttons.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.