fix for earlier overlay width patch (there was a conflict with multirow overlays) - svkbd - simple virtual keyboard
HTML git clone git://git.suckless.org/svkbd
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit bd3620acf47d9a351fd345ea02b19c3095b92a4f
DIR parent c2251315e5e3916293313a71ce0cd92f79c7b220
HTML Author: Maarten van Gompel <proycon@anaproy.nl>
Date: Sun, 7 Mar 2021 00:33:20 +0100
fix for earlier overlay width patch (there was a conflict with multirow overlays)
Diffstat:
M svkbd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/svkbd.c b/svkbd.c
@@ -924,8 +924,8 @@ showoverlay(int idx)
}
while (keys[j].keysym == 0)
j++;
- if (overlay[i].width)
- j += overlay[i].width;
+ if (overlay[i].width > 1)
+ j += overlay[i].width - 1;
keys[j].label = overlay[i].label;
keys[j].label2 = overlay[i].label2;
keys[j].keysym = overlay[i].keysym;