summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoadAlami <moadalami40@gmail.com>2025-08-31 09:09:48 +0100
committermoadAlami <moadalami40@gmail.com>2025-08-31 09:09:48 +0100
commit6cac1abb480ce53a122b510e1d7d52f3fb9c03a0 (patch)
tree11d375838a6d301cde0ec77df4c99e126a1cac11
parenta4f7c2f7771f8240f56f0dff354d541068e33aa2 (diff)
added fix of systray-statuscmd conflict
-rw-r--r--README26
1 files changed, 26 insertions, 0 deletions
diff --git a/README b/README
index ae95706..3de1330 100644
--- a/README
+++ b/README
@@ -50,3 +50,29 @@ and (re)compiling the source code.
Patches
-------
systray - zoomswap - scratchpad - sticky - pertag - noborder - movestack - hide vacant tags - bar height - actualfullscreen - alpha monocle layout - bidi - fakefullscreenclient - moveresize - statuscmd
+
+Fixes
+-----
+To fix systray and statuscmd conflicts:
+
+ In the buttonpress function where you have this line:
+
+ else if (ev->x > selmon->ww - statusw) {
+
+and you have to make sure that it takes the width of the systray into account as well, so you end up with:
+
+ else if (ev->x > selmon->ww - statusw - getsystraywidth()) {
+
+Replace
+
+ drw_text(drw, m->ww - statusw + x, 0, tw, bh, 0, text, 0);
+
+With
+
+ drw_text(drw, m->ww - statusw - stw + x, 0, tw, bh, 0, text, 0);
+
+
+Fix for offset of clicks
+
+ else if (ev->x > selmon->ww - statusw - getsystraywidth()) {
+ x = selmon->ww - statusw - getsystraywidth(); //This wasn't there before