fix the highlighted key on dragged touch

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Reed Wade 2021-03-09 23:26:02 +01:00 committed by Hiltjo Posthuma
parent b6055b3310
commit 7a6742e6e4
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ motionnotify(XEvent *e)
if ((lostfocus != -1) && (gainedfocus != -1) && (lostfocus != gainedfocus)) {
if (debug) printdbg("Clicking new key that gained focus\n");
press(&keys[gainedfocus], 0);
keys[gainedfocus].highlighted = True;
}
}