Commit Graph

14 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
99f6f1b52c Adding focusfollowmouse patch ref. #364 2023-06-27 16:07:57 +02:00
bakkeby
2f70c42aab Adding renamed scratchpads patch 2022-06-20 14:00:09 +02:00
pepper-jelly
0733c39e0c sed source files to end with 1 new line 2021-06-14 08:54:23 +03:00
bakkeby
9072ef28a4 Splitting SchemeHid to SchemeHidNorm and SchemeHidSel given that a hidden client may still be the selected client ref. #148 2021-05-21 10:18:41 +02:00
bakkeby
77c45afe48 Addressing various memory leak issues ref. https://github.com/bakkeby/patches/issues/30 2021-04-28 13:35:22 +02:00
bakkeby
ff9811f73d Just some minor changes adding bar border patch ref. #41 2020-09-09 17:24:02 +02:00
bakkeby
82c3984b2d Adding tdukv's addition to the status2d patch - allowing pywal to control the status colours via terminal colors 2020-08-28 07:17:52 +02:00
bakkeby
81488b4862 Simplification of color configuration; settling on a set of color schemes that is shared between multiple patches (urgentborder, floatborder and titlecolor patches made non-optional) 2020-08-21 15:49:15 +02:00
bakkeby
903b32ac8b Major refactoring in preparation for bar modules 2020-07-15 08:57:30 +02:00
bakkeby
2b332f7199 Expanding Xresources options to include the warn colours in relation to the statuscolors patch 2020-06-03 17:29:25 +02:00
bakkeby
dc5d77e95f Adding urgentborder patch 2019-09-16 00:13:03 +02:00
bakkeby
f60b0b5121 Adding winview patch 2019-09-15 23:36:05 +02:00
bakkeby
f8f67508d8 Adding xrdb patch 2019-09-15 22:45:22 +02:00