wlr/taskbar sometimes ignores the first click
when clicking an app icon in taskbar widget of waybar, sometimes it is not changued to this app, even when its on the same desk or another, it happens only sometimes, there is not reproducible steps to make it to happen, sometimes is the first click you do on the taskbar, sometimes is when clicking the next app icon,..
this is the section of wrl/taskbar in the config.jsonc "wlr/taskbar": { "format": "{icon}", "icon-size": 42, "icon-theme": "Nordic", "tooltip": true, "tooltip-format": "{title}", "on-click": "activate", "on-click-middle": "close" },
waybar version is: Waybar v0.15.0 and I've compiled it from freebsd ports but also used the binary package of void linux with same result
I use wayfire as a compositor, at first I thought it was a problem of having enabled follow-mouse (that is give focus to the window where the mouse is over) but I disabled and get the same behaviour, also tried to put tooltip to false in waybar config, and even tried on diferent SO, I use FreeBSD daily but have void linux as SO backup, I have the same behaviour in void linux
I don't know if its a wayfire specific issue as I don't see anyone else reporting something similar so I think it should work correct in other more popular compositors as sway or hyprland, but it only happens to me with waybar not for instance with wf-panel (I used to use wf-panel but with the new version of wayfire and wf-shell 0.11 wf-panel has a few issues that's why I moved to waybar)
Source: Alexays/Waybar