~mil/sxmo-devel

Fix error in >1 wide key width calc, also 2021 v1 APPLIED

silver
silver: 1
 Fix error in >1 wide key width calc, also 2021

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/sxmo-devel/patches/22165/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Fix error in >1 wide key width calc, also 2021 Export this patch

silver
---
 svkbd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/svkbd.c b/svkbd.c
index 95c0de0..e2bd5d9 100644
--- a/svkbd.c
+++ b/svkbd.c
@@ -519,7 +519,7 @@ updatekeys() {
		for(x = 0; i < LENGTH(keys) && 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;
		}
@@ -559,7 +559,7 @@ main(int argc, char *argv[]) {
	signal(SIGTERM, sigterm);
	for (i = 1; argv[i]; i++) {
		if(!strcmp(argv[i], "-v")) {
			die("svkbd-"VERSION", © 2006-2020 svkbd engineers,"
			die("svkbd-"VERSION", © 2006-2021 svkbd engineers,"
				       " see LICENSE for details\n");
		} else if(!strcmp(argv[i], "-d")) {
			isdock = True;
-- 
2.25.1
Thanks! I'll give it a try first and will forward the patch upstream after testing.

--

Maarten van Gompel (proycon)
https://proycon.anaproy.nl