From 7e1e4ac7b0d133dd1465f44cd119b5a7416d5b56 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sun, 18 Mar 2018 11:17:32 -0400 Subject: [PATCH] Add a workaround to be able to do Alt-Tab This is needed as Left Alt is dual-role with Tab --- src/evdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index 28ee234..d1a7e68 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -509,6 +509,13 @@ AhmStep1(InputInfoPtr pInfo, struct input_event *ev, int value){ /* How many keys are already delayed? */ switch(pEvdev->ahmDelayedKeys){ case 0: + if (( value == 1) && (code == 64 && pEvdev->ahmDownKey[108])) { + /* HARDCODED SHIT! for now test if it works */ + /* The left alt key has bene pressed with the right alt key down: freeze */ + pEvdev->transModFreeze[code] = 1; + AhmStep2(pInfo, ev, value, code); + pEvdev->transModFreeze[code] = 1; + } else if(pEvdev->ahmDelayTable[code] && value){ ahmDelayedCode[0] = code; pEvdev->ahmDelayedKeys = 1;