JakeStanger / ironbar

Customisable Wayland gtk bar written in Rust.
https://crates.io/crates/ironbar
MIT License
484 stars 36 forks source link

tray icons appear twice #640

Open zimbipw opened 2 weeks ago

zimbipw commented 2 weeks ago

Describe the bug

The tray icons show up twice on my bar.

System information:

2024-06-14T10:07:14,979556956+02:00

JakeStanger commented 2 weeks ago
zimbipw commented 2 weeks ago

Am Freitag, dem 14.06.2024 um 12:49 -0700 schrieb Jake Stanger:

  • What version of Ironbar are you running? v0.15.1.r74.gd0bdf31-1
  • Do you have any other bars/shells running? waybr
  • How was Ironbar started? from terminal
  • Did you have any instances of Ironbar previously running before this one was opened? no
JakeStanger commented 2 weeks ago

Okay, I'm pretty sure this is an issue with running Ironbar and Waybar at the same time, due to my tray implementation not being quite spec compliant.

I've known about this but been ignoring it and hoping it would go away, but clearly not so best I fix that.

Thanks for the additional info.

crimsonduelist commented 2 weeks ago

I was gonna make an issue for some tray behaviour as well but this seems atleast inpart related cuz I get the same doubles with udiskie especially. Also on arch and hyprland latest release. ironbar.2024-06-15.log

Tell me if I should open separately otherwise this is what I noticed:

iron bar issue for tray -> 1.doesnt open if tray is in ironbar/config and gbar is open with tray 2.open if tray is in and waybar is open

  1. it keeps the tray if opened before gbar (gbar doesnt steal it)
  2. it doesnt keep tray if open before waybar (waybar steals it!) (here they stay until i close and reopen ironbar)
  3. retest this some weird double icons after stealing it? and reopening

-I m not sure what I should say that should actually happen i.e. if it should keep it (like gbar does if opened first) But definitely ironbar should handle it better? like on of the other bars does related to #632