Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix error in >1 wide key width calc, also 2021 - svkbd - simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log
Files
Refs
README
LICENSE
---
commit 34530800bbf295b586737dc3a15336cb5a6d3c65
parent 42380f62ebebefc94eb986343d6d91b1b6106ed5
Author: silver <[email protected]>
Date: Sun, 13 Jun 2021 22:27:58 +0200
Fix error in >1 wide key width calc, also 2021
Signed-off-by: Maarten van Gompel <[email protected]>
Diffstat:
M svkbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/svkbd.c b/svkbd.c
@@ -955,7 +955,7 @@ updatekeys(void)
for (x = 0; i < numkeys && keys[i].keysym != 0; i++) {
keys[i].x = x;
keys[i].y = y;
- keys[i].w = keys[i].width * (ww - 1) / base;
+ keys[i].w = keys[i].width * ww / base;
keys[i].h = r == 1 ? wh - y - 1 : h;
x += keys[i].w;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.