aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuben Gonzalez <gonzaru@sdf.org>2026-03-13 15:23:24 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2026-03-13 18:27:18 +0100
commit44dbc6809d05b8f2addc483f882e670db0b6b8e9 (patch)
tree00807887438324092f0ebd3bf3c44f1a5d58e7e1 /Makefile
parent2bb919e6342ae04242e3af6d5921e550d3e0a619 (diff)
buttonpress: fix status text click area mismatchHEADmaster
The status bar in drawbar() calculates the text width as TEXTW(stext) - lrpad + 2. However, the click detection in buttonpress() used TEXTW(stext) without adjusting for that padding. This created an "extra" clickable area of some pixels to the left of the status text that would incorrectly trigger ClkStatusText actions instead of ClkWinTitle. Steps to reproduce: 1. Set a status text: xsetroot -name "HELLO" 2. Move the mouse to the empty space with some pixels close to the left of the word "HELLO" but in the title area. 3. Middle-click (or any binding for ClkStatusText). 4. You can see that the status bar action is triggered (default a terminal spawns), even though you clicked in the window title area. This fix ensures that the clickable area matches the visual text.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions