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

Hyprland workspaces's lastwindow field does not update properly #418

Closed
augustbbl opened this issue May 14, 2024 · 0 comments
Closed

Hyprland workspaces's lastwindow field does not update properly #418

augustbbl opened this issue May 14, 2024 · 0 comments

Comments

@augustbbl
Copy link

Hello! I use ags to dynamically display icons for the last window used in each workspace:
image

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:

  1. In workspace 1, I open Firefox, then open Kitty.
  2. I switch to workspace 2. The icon for workspace 1 reflects Kitty, because it was focused when a window was last opened.
  3. I switch back to workspace 1, focus Firefox.
  4. 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.
@augustbbl 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
@Aylur Aylur mentioned this issue Sep 25, 2024
Merged
@Aylur Aylur closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
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 a pull request may close this issue.

2 participants