Open flip-rossi opened 8 months ago
Hi there, @flip-rossi ! Could you please try building PR #2817 and see if that fixes the issue for you when moving windows accross monitors?
One way I found to force this bug is to pin a floating window and then switch workspaces
When I pin a floating window, it doesn't ever appear to change workspaces on the bar. It does make sense, however, as I can't see any mentions of movewindow
on Hyprland's IPC when the pinned window follows me around. Can you check if it does for you? Simply run this command on a terminal:
socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
And see if it spits out any lines with movewindow
when switching workspaces while a floating window is pinned.
Hey, sorry for the delayed response
Could you please try building PR https://github.com/Alexays/Waybar/pull/2817 and see if that fixes the issue for you when moving windows accross monitors?
Yeah, it does! Nice
I can't see any mentions of movewindow on Hyprland's IPC when the pinned window follows me around. Can you check if it does for you?
Nope, no movewindow
. But at least now the window icon doesn't seem to disappear, it just doesn't move, like your case. Not ideal but better than before.
Sorry to bother, I'll close this PR
Nevermind, I rebooted and now the icons disappear again when changing workspaces with a pinned window 😓. (The issue when moving windows across monitors seems to have been fixed for good tho)
Running socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
gives me:
activewindow>>firefox,Mozilla Firefox
activewindowv2>>5f67ea800020
openwindow>>5f67ea800020,2,firefox,Mozilla Firefox
changefloatingmode>>5f67ea800020,1
createworkspace>>3
activewindow>>firefox,Mozilla Firefox
activewindowv2>>5f67ea800020
workspace>>3
destroyworkspace>>2
changefloatingmode>>5f67ea800020,0
createworkspace>>4
movewindow>>5f67ea800020,4
activewindow>>,
activewindowv2>>,
activewindow>>firefox,Mozilla Firefox
workspace>>4
activewindowv2>>5f67ea800020
destroyworkspace>>3
Here I opened Firefox, made it floating, pinned it, changed to workspace 3, made Firefox not floating, moved it to workspace 4, and moved focus to workspace 4. The icon disappeared as soon as I changed to workspace 3 with Firefox pinned.
Here I opened Firefox, made it floating, pinned it, changed to workspace 3, made Firefox not floating, moved it to workspace 4, and moved focus to workspace 3. The icon disappeared as soon as I changed to workspace 3 with Firefox pinned.
That's a very good way to reproduce the problem. Seems to be related to workspaces being destroyed. I'll see what I can do, although I think I'll submit a PR to Hyprland itself since it's a problem of it not accusing the window of being moved and then actually notifying that the workspace has been destroyed; Waybar is behaving as expected in this case, it can't suppose that Hyprland didn't notify it
When using the hyprland/workspaces modules in Waybar with Hyprland, sometimes the icon of a specific window will disappear for no apparent reason, and I can move the window around workspaces or monitors and it won't fix. However, if I open a new window with the same class and title, the icon will be there.
Example (there is a Firefox client in the "12" workspace but it's icon doesn't show up):
One way I found to force this bug is to pin a floating window and then switch workspaces, but it also occurs seemly randomly in other situations I wasn't able to find patterns for.
I'm using FiraCode Nerd Font and Hyprland's split-monitor-workspaces plugin, if that makes any difference.
If I run
hyprctl clients
the window shows as normal:My "hyprland/workspaces" field in config.jsonc:
Rules in style.css that affect the workspaces region (it's pretty much the default config):