-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
wlr/taskbar on multi-monitor: icons not displayed for apps launched before waybar #3366
Comments
I think Task (7) is not the correct task we should be looking at. My (limited) understanding of wlr/taskbar is that all apps have a Task object representation in the module regardless of whether the app is currently on the module's output or not. There is a module instance for each output. So there are actually two representations for thunar, one is a Task object in the taskbar module on LVDS-1, and one is a Task object in the taskbar module on HDMI-A-1. Task (7) is thunar's representation on HDMI-A-1's wlr/taskbar module. Task (3) is thunar's representation on LVDS-1. When the module is rendered (or when apps are added, moved or removed), the handle_output_enter/handle_output_leave run in each module. But using
I think Why that again is happening, I'm not sure at this point. I can reproduce the issue, though. |
Apparently, the icon theme can be empty, so the for loop in
But of course it has the disadvantage that any icon themes specified in the config would be ignored on that particular screen, for existing tasks. That shouldn't be the solution. :P |
Fantastic, @RobertMueller2. It works. I can only test on sway right now, but it works and fixes the issue on multi-monitors (at least on my system). Many thanks. |
Wayland compositor: sway (v 1.9) or Hyprland (0.41.1) [error happens with both]
Waybar version: 0.10.3
I have 2 monitors (output LVDS-1 and HDMI-A-1), and the exact same waybar configuration is applied to both. Specifically for wlr/taskbar:
wlr/taskbar config
Observations:
Logs:
By using log-level trace, I see that icons are found and "Loaded" for all open applications, but only are "now visible" on the HDMI-A-1 output. When the icon is "loaded" for the application on LVDS-1, it isn't "now visible". See examples below:
Example on HDMI-A-1:
Example on LVDS-1:
As you can see, on LVDS-1, the line "now visible on LVDS-1" is missing. I think this could help find the issue.
I have attached the trace logs in case it is helpful.
Operations performed:
I will provide any information required to help understand and fix this bug.
waybar.log
The text was updated successfully, but these errors were encountered: