~mil/sxmo-svkbd

ce0779e5c910c0e93d05449e2a4515cad6fea856 — Christoph Lohmann 9 years ago d356e43
Unpress modifiers so there is no problem when exiting svkbd inbetween.
1 files changed, 8 insertions(+), 0 deletions(-)

M svkbd.c
M svkbd.c => svkbd.c +8 -0
@@ 371,6 371,14 @@ press(Key *k, KeySym mod) {
					True, 0);
		}
		XTestFakeKeyEvent(dpy, XKeysymToKeycode(dpy, k->keysym), True, 0);

		for(i = 0; i < LENGTH(keys); i++) {
			if(keys[i].pressed && IsModifierKey(keys[i].keysym)) {
				XTestFakeKeyEvent(dpy,
					XKeysymToKeycode(dpy, keys[i].keysym),
					False, 0);
			}
		}
	}
	drawkey(k);
}