From 6cac1abb480ce53a122b510e1d7d52f3fb9c03a0 Mon Sep 17 00:00:00 2001 From: moadAlami Date: Sun, 31 Aug 2025 09:09:48 +0100 Subject: added fix of systray-statuscmd conflict --- README | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'README') 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 -- cgit v1.2.3