Commit Graph

13 Commits

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.
2024-07-01 09:53:43 +02:00
bakkeby
404401622b systray: hide systray when there are no systray icons to show ref. #268 2022-06-27 11:07:26 +02:00
bakkeby
39fde74dfd systray: allow systray icons to survive a restart by handing systray icons over to the root window before destroying the systray window 2022-06-17 16:58:47 +02:00
bakkeby
440c4a6efa Porting the seamless restart feature from dusk into dwm-flexipatch 2022-06-17 14:36:20 +02:00
pepper-jelly
0733c39e0c sed source files to end with 1 new line 2021-06-14 08:54:23 +03:00
bakkeby
acbf2de1c2 systray: hotplugging issues, keep systray window on top of bar window ref. #84 2020-11-28 10:58:08 +01:00
bakkeby
5edf4bab17 Proposed changes to ensure that systray icons are sized according to font size rather than bar height, ref. #62 2020-10-24 10:01:19 +02:00
bakkeby
ff9811f73d Just some minor changes adding bar border patch ref. #41 2020-09-09 17:24:02 +02:00
bakkeby
260bd11a53 systray may not always exist 2020-09-07 12:43:37 +02:00
bakkeby
110cc7d240 Added logic to auto-hide bars if nothing is drawn on them (e.g. for standalone bars that only show certain clients) 2020-08-22 08:43:07 +02:00
bakkeby
664484d572 Refinement 2020-07-18 13:03:30 +02:00
bakkeby
aa70728d00 Adding BarWidthArg, BarDrawArg, BarClickArg to keep the method signatures static 2020-07-15 14:10:47 +02:00
bakkeby
903b32ac8b Major refactoring in preparation for bar modules 2020-07-15 08:57:30 +02:00