-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
No tray icons #1355
Comments
What WM are you using? The icons aren't appearing because as the error states, the tray window is stuck behind the bar. |
Seems to be the opposite problem as #425. For some reason, on some WMs under certain circumstances, we can't reposition the tray, I wasn't able to figure out why that is though. |
I use i3 |
I have the exact same problem since months (made me think about leaving polybar :/) |
@Doshirae Do you remember approximately when this started to happen? Perhaps i3 changed some of their window handling and caused this issue. |
I don't remember sorry, I didn't thought of writing it down
But yesterday, the icons suddenly reappeared, and I don't know why...
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
I've installed polybar today for the first time and I am having this same issue. Let me know if there are more info I can gather/provide. Edit. The tray and icons appear in the bar and other elements appear to shift properly. Nevertheless the error is still shown in the log. |
I think something is clashing between i3 and polybar. I'm on the same versions as @avernan, and I'm also getting the same error. I also get the dropping unmatched character warning when I put the animations in my config. I'm using FontAwesome and I've replaced the already existing icons in the module file with the ones from the Font Awesome cheat sheet (Even though I thought they were the same). And lastly I can't get the battery percentage and timer working... |
I am also seeing this same behavior and error, on Solus Linux with i3-gaps. Sometimes it works, sometimes not all my icons show up, and sometimes when they do I am not able to click on them (it being behind the bar makes sense). Relaunching polybar a few times usually fixes it. polybar v3.2.1 I am new to both so figured I had a configuration issue... |
same thing as @oakbrad, only that icons always appear but sometimes i can't click on them. polybar 3.2.1 |
polybar 3.2.0-50-gabdd5f9 polybar reports "error: tray: Failed to put tray above 0x1600002 in the stack (XCB_MATCH (8))", no tray is visible. i3blocks displays the tray fine. Is there any chance if this getting fixed soon? |
There is a new tray implementation in the works but no ETA yet. The easiest solution for you would be to disable the tray in polybar and use a dedicated program like stalonetray or tint2 and have a text module in polybar that reserves space or set a padding so that the tray doesn't overlap anything. |
Hi, These 2 lines seems to be fixing this particular error:
Hope this comes in handy :) |
The true problem is probably the restack, using |
Having the same issue but it does not get fixed by setting wm-restack and override-redirect. If I add those two options it will start without error but the tray icons will be rendered around 50 pixel above the polybar. Versions are i3 4.15, polybar 3.3.0 (from Ubuntu 18.10 repository) |
@sheijk Can you use |
Yes, I can re-position it that way. Thanks! Also a correction: with wm-restack = i3 and override-redirect = true the tray will be rendered inside the bar (although the bar is just above where the i3 bar usually sits and windows get rendered over it but I think that is the way it should be?). But without those two options the tray gets rendered at the wrong place. It looks like it's just the same position the tray icons/bar would be placed if the two options are on |
@sheijk When using The reason the tray appears at this weird position is because it's a separate window that always uses override-redirect and thus i3 doesn't reposition the tray and the tray is rendered at the position where it would be when i3 didn't move the bar around |
I'm also seeing this error (with current master polybar and version 4.16 of i3). Any combination of The exact error message I get is:
Note that error code 8 here seems to be a XCB_MATCH error.
This seem to be a hint toward the cause of this bug. Looking at the window list as produced by
When
Also note here that the tray window exists, but is only 1 pixel wide. That is probably a different issue though (possibly #1609 or #1603) |
@baszoetekouw Thanks for digging into that. Interesting, so with In general the tray has a width of 1px if there are no tray icons, otherwise it's larger, so you probably have buggy tray icons. |
WMs like i3 and openbox reparent the bar window when override-redirect is false, because of that the restacking of the tray window often didn't work. This should basically eliminate "Failed to put tray above..." errors. Fixes polybar#425 Fixes polybar#1355
Was able to fix it (see #1615). The fix should appear in either the 3.3.1 or 3.4.0 release. |
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Bruh, you rock!!!!!!!!!!!!!!!!!!!!!!!!! |
The same thing happens sporadically when you combine xmonad with polybar, sometimes tray icons appear sometimes they don't, every boot either works or doesn't. |
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
Added fixes as mentioned in github.com/polybar/polybar/issues/1355#issuecomment-449723313
…bar/polybar/issues/1355#issuecomment-449723313 (#83), by @keddad
This did not change anything for me (except for override-redirect causing the bar to end up hidden below other windows as soon as I start any software, which would make it useless anyway). I'm on polybar 3.5.7 and i3 4.20.1. |
Just upgraded to ubuntu 22.04 with i3 and this is happening |
I'm experiencing the same issue on Ubuntu 22.04.2 LTS with i3 v4.19.1-7-ge61a2311 and polybar v3.5.7 and If I set |
This is fixed by #2609 if you are using the new tray module. |
@patrick96 Fantastic work, thank you! Is there anything that needs to be done on the user side (i.e. in the config) to enable this, beyond updating Polybar? (Speaking of which, will there be a new Polybar release in the near future?) |
@codethief You will need to switch over to using the tray module instead of using the tray settings in the bar section. There is a small example in #2689. There are still a few things I want to get into the next release (see https://github.com/polybar/polybar/milestone/13) before it is ready |
Hello,
I cannot see tray icons, I have this error:
error: tray: Failed to put tray above 0x0e00002 in the stack (XCB_MATCH (8))
The polybar config file: https://pastebin.com/4Fc0vy2k
The polybar logs: https://pastebin.com/V62tnB0x
My version of polybar is the 3.2.0.
Thanks for your help
The text was updated successfully, but these errors were encountered: