Commit Graph

13 Commits (3bc91e187cceee26d04ed9eb43c64676eecf3295)

Author SHA1 Message Date
bakkeby 8d754cd644 systray + xrdb compatibility issue ref. #429
When changing colour scheme during runtime using xrdb the systray and
icons would keep the original colours.

To work around that the systray icon windows need to be redrawn after
changing the background pixel value. Just calling XClearWindow for
each systray window results in the systray icons disappearing, they
do not automatically redraw. The solution is apparently to send an
Expose event to each window which should in principle trigger a redraw
from the application side.

One way to achieve this is to move the window out of the drawable area.
When the window is then brought back into view the X server will send
the Expose event for the window. The "easiest" way to do this is to
move the entire systray window out of view as part of the xrdb call.

It is possible to do this in the draw_systray function itself, but we
probably do not want to do this every single time the bar is drawn and
it may also cause some noticeable flickering.

This issue is isolated to using the systray without the alpha patch.
3 months ago
bakkeby 404401622b systray: hide systray when there are no systray icons to show ref. #268 2 years ago
bakkeby 39fde74dfd systray: allow systray icons to survive a restart by handing systray icons over to the root window before destroying the systray window 2 years ago
bakkeby 440c4a6efa Porting the seamless restart feature from dusk into dwm-flexipatch 2 years ago
pepper-jelly 0733c39e0c sed source files to end with 1 new line 3 years ago
bakkeby acbf2de1c2 systray: hotplugging issues, keep systray window on top of bar window ref. #84 4 years ago
bakkeby 5edf4bab17 Proposed changes to ensure that systray icons are sized according to font size rather than bar height, ref. #62 4 years ago
bakkeby ff9811f73d Just some minor changes adding bar border patch ref. #41 4 years ago
bakkeby 260bd11a53 systray may not always exist 4 years ago
bakkeby 110cc7d240 Added logic to auto-hide bars if nothing is drawn on them (e.g. for standalone bars that only show certain clients) 4 years ago
bakkeby 664484d572 Refinement 4 years ago
bakkeby aa70728d00 Adding BarWidthArg, BarDrawArg, BarClickArg to keep the method signatures static 4 years ago
bakkeby 903b32ac8b Major refactoring in preparation for bar modules 4 years ago