mirror of git://git.suckless.org/svkbd
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:
parent
b6055b3310
commit
7a6742e6e4
2
svkbd.c
2
svkbd.c
|
@ -177,6 +177,8 @@ motionnotify(XEvent *e)
|
||||||
if ((lostfocus != -1) && (gainedfocus != -1) && (lostfocus != gainedfocus)) {
|
if ((lostfocus != -1) && (gainedfocus != -1) && (lostfocus != gainedfocus)) {
|
||||||
if (debug) printdbg("Clicking new key that gained focus\n");
|
if (debug) printdbg("Clicking new key that gained focus\n");
|
||||||
press(&keys[gainedfocus], 0);
|
press(&keys[gainedfocus], 0);
|
||||||
|
keys[gainedfocus].highlighted = True;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue