On 12/19/2016 9:04 PM, [email protected] wrote:
Hi Eon,
Thanks for this code is working perfectly. I know that this is a little
old thread but, I wanted to know if you made this patch work with
systray, I tried but I couldn't find the reason, if I activate systray
and this patch dwm doesn't start. I really appreciate if you could help
me, I'm supposing that the problem is on updatebars(), I think that
systray needs something on this method to work properly and I don't have
the necessary knowledge to fix.
Best regards and thanks for your really great work.
Hi, Joel
I checked your email last night and spent some time on the problem.
The source of problem was, indeed, "visual". The systray window was
using the default visual, which doesn't support alpha values. All I had
to do was to create `systray->win` with proper visual and attributes,
and now it works like charm.
I've also noticed that tray icons were using default visuals, and I
wanted to let them use ARGB visual. I remembered seeing an atom called
_NET_SYSTEM_TRAY_VISUAL, which allows tray icons to use the visual of
its parent(systray). I tried using it, but the result was not quite what
I expected[1]. (Notice the bright background of the heart icon.)
I'll post my work through another email.
Sincerely,
Eon
[1]: https://imgur.com/a/qTqtK