shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 50e5358319089cdc10e3bee8e070177052a28b89
parent d6539c81506b239a99d0b9252b386adadf6c4df1
Author: seninha <lucas@seninha.org>
Date:   Sun, 11 Sep 2022 19:54:58 -0300

check when to exit alttab

Diffstat:
Mxevents.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xevents.c b/xevents.c @@ -617,10 +617,12 @@ alttab(XEvent *e) containerbacktoplace(c, raised); c = containerraisetemp(c, isshiftstate(ev.xkey.state)); raised = 1; + } else if (!isvalidstate(ev.xkey.state)) { + goto done; } break; case KeyRelease: - if (ev.xkey.keycode == config.altkeycode) + if (ev.xkey.keycode == config.altkeycode || !isvalidstate(ev.xkey.state)) goto done; break; }