fix the highlighted key on dragged touch - svkbd - simple virtual keyboard | |
git clone git://git.suckless.org/svkbd | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7a6742e6e43c0a540d745e6426a655eebe9ed31f | |
parent b6055b3310a55d106d518495e6d3696bc9a04739 | |
Author: Reed Wade <[email protected]> | |
Date: Tue, 9 Mar 2021 23:26:02 +0100 | |
fix the highlighted key on dragged touch | |
Signed-off-by: Reed Wade <[email protected]> | |
Signed-off-by: Maarten van Gompel <[email protected]> | |
Diffstat: | |
M svkbd.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/svkbd.c b/svkbd.c | |
@@ -177,6 +177,8 @@ motionnotify(XEvent *e) | |
if ((lostfocus != -1) && (gainedfocus != -1) && (lostfocus != gainedfo… | |
if (debug) printdbg("Clicking new key that gained focus\n"); | |
press(&keys[gainedfocus], 0); | |
+ keys[gainedfocus].highlighted = True; | |
+ | |
} | |
} | |