You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I use ags to dynamically display icons for the last window used in each workspace:
For the active workspace, I bind to the active property (which works great), and for inactive workspaces I fall back to the lastwindow field from each element of the workspaces property (as seen via hyprctl workspaces).
However, it seems that workspace information is not updated when the workspace ipc event happens. As a result, when i switch workspaces, the previously active workspace often displays the wrong information. It would be nice if workspace information could also be updated whenever the active workspace changes.
Example:
In workspace 1, I open Firefox, then open Kitty.
I switch to workspace 2. The icon for workspace 1 reflects Kitty, because it was focused when a window was last opened.
I switch back to workspace 1, focus Firefox.
I switch to workspace 2. The icon for workspace 1 should reflect Firefox, because it was last focused, but instead still reflects Kitty, because the workspace information for lastwindow was never updated.
The text was updated successfully, but these errors were encountered:
augustbbl
changed the title
Hyprland workspaces's lastwindow field does not update properly
Hyprland workspaces's lastwindow field does not update properly
May 15, 2024
Hello! I use ags to dynamically display icons for the last window used in each workspace:
For the active workspace, I bind to the
active
property (which works great), and for inactive workspaces I fall back to thelastwindow
field from each element of theworkspaces
property (as seen viahyprctl workspaces
).However, it seems that workspace information is not updated when the
workspace
ipc event happens. As a result, when i switch workspaces, the previously active workspace often displays the wrong information. It would be nice if workspace information could also be updated whenever the active workspace changes.Example:
lastwindow
was never updated.The text was updated successfully, but these errors were encountered: