Opened 5 years ago

Last modified 3 years ago

#15883 new enhancement

Tray overflow is possible in Mini Mode

Reported by: bitigchi Owned by: jscipione
Priority: normal Milestone: Unscheduled
Component: Applications/Deskbar Version: R1/Development
Keywords: tray Cc:
Blocked By: Blocking:
Platform: All

Description

Observed with: https://github.com/haikuports/haikuports/issues/4881

System Tray should have some kind of overflow protection, a drop-down menu would be useful once the tray reaches a certain length.

Change History (6)

comment:1 by jscipione, 3 years ago

Type: bugenhancement

Windows had the same problem with too many tray icons and created the solution you suggested to solve it.

So far the expectation of Deskbar is that you'll have a reasonable amount of tray icons. I'm not sure this expectation has really changed. You've triggered a bug in Otter browser that adds hundreds of ? tray icons to Deskbar. This is a degenerate use-case.

I'm willing to call this a Deskbar feature enhancement you'd like to have, but this is not a bug in Deskbar. Deskbar is working as intended, Otter Browser is not.

comment:2 by bitigchi, 3 years ago

Specifically, this is a bug in Qt tray bar implementation in Haiku.

comment:3 by jscipione, 3 years ago

It’s a bug in Qt tray bar that it adds hundreds of ? icons. This should be fixed there. But from the perspective of Deskbar this isn’t really a problem unless you have tens of legitimate tray icons, or at least a handful of wide tray icons. So this is still not a bug in Deskbar as much as it is a low priority feature enhancement. Thanks for reporting anyway.

comment:4 by nephele, 3 years ago

This seems to happen much more freuqeuntly with a non-english locale, with an english locale set I can get maybe 3 tray icons at max per qt application, but with a different one set they accumilate much much faster.

perhaps the deskbar gainig ? entries bug is actually one in localization and not neccesarily qt?

comment:5 by jscipione, 3 years ago

I have to ask, what is the purpose of these ? tray icons? Is there a reason that it adds so many? I imagine that this does not happen on other systems that run Qt apps. Is it adding a ? tray icon for every string it translates in each Qt app?

in reply to:  5 comment:6 by madmax, 3 years ago

Replying to jscipione:

I have to ask, what is the purpose of these ? tray icons? Is there a reason that it adds so many?

https://github.com/threedeyes/qthaikuplugins/blob/c730c25d1b049659cf8727fa2d9b5afd0c35f435/tools/qsystray/qsystray.cpp#L81

It seems the '?' is for the case when there is no icon. Why that happens and why so many I think it's best left for the haikuports bug. If the qt port part determines that there's something the Deskbar or the Locale Kit or something else in Haiku is doing wrong, then we could continue here. But right now, it looks like the port misbehaving.

Version 0, edited 3 years ago by madmax (next)
Note: See TracTickets for help on using tickets.