fix for output key on release - svkbd - simple virtual keyboard
 (HTM) git clone git://git.suckless.org/svkbd
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a43bf5c4c159a07f3350eeca8b0119e661359cf6
 (DIR) parent 4ec3b00d6cfb7a3af8f420361f6fb104e774c411
 (HTM) Author: Maarten van Gompel <proycon@anaproy.nl>
       Date:   Sun, 14 Mar 2021 13:20:39 +0100
       
       fix for output key on release
       
       Diffstat:
         M svkbd.c                             |       3 +--
       
       1 file changed, 1 insertion(+), 2 deletions(-)
       ---
 (DIR) diff --git a/svkbd.c b/svkbd.c
       @@ -584,7 +584,6 @@ unpress(Key *k, KeySym mod)
                                                simulate_keypress(mod);
                                        }
                                        simulate_keypress(k->keysym);
       -                                if (printoutput) printkey(k, mod);
                                        pressbegin.tv_sec = 0;
                                        pressbegin.tv_usec = 0;
                }
       @@ -601,9 +600,9 @@ unpress(Key *k, KeySym mod)
                for (i = 0; i < numkeys; i++) {
                        if (keys[i].pressed && !IsModifierKey(keys[i].keysym)) {
                                simulate_keyrelease(keys[i].keysym);
       +                        if ((printoutput) && (ispressingkeysym == keys[i].keysym)) printkey(&keys[i], mod);
                                keys[i].pressed = 0;
                                drawkey(&keys[i]);
       -                        break;
                        }
                }
                if (i != numkeys) {