diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-09 16:47:34 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-09 16:47:34 +0900 |
| commit | 7b4b09db1548e6bb6bc60ca64968b24dc2996967 (patch) | |
| tree | 5052e88384bcfc2da3b207de1ac4cdcb7a8a2245 /tabbed/patches/tabbed-ungrabkey-0.8.diff | |
| parent | 28729f1f7e4cdef4534d969733b9178cd689418e (diff) | |
created tabbed/
Diffstat (limited to 'tabbed/patches/tabbed-ungrabkey-0.8.diff')
| -rw-r--r-- | tabbed/patches/tabbed-ungrabkey-0.8.diff | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tabbed/patches/tabbed-ungrabkey-0.8.diff b/tabbed/patches/tabbed-ungrabkey-0.8.diff new file mode 100644 index 0000000..14a1d70 --- /dev/null +++ b/tabbed/patches/tabbed-ungrabkey-0.8.diff @@ -0,0 +1,33 @@ +Author: Chris Noxz <chris@noxz.tech> + +diff -upN tabbed-0.8-a/tabbed.c tabbed-0.8-b/tabbed.c +--- tabbed-0.8-a/tabbed.c 2024-03-19 12:23:17.000000000 +0100 ++++ tabbed-0.8-b/tabbed.c 2024-06-11 20:07:21.814961956 +0200 +@@ -1132,6 +1132,11 @@ toggle(const Arg *arg) + void + unmanage(int c) + { ++ int i, j; ++ unsigned int modifiers[] = { 0, LockMask, numlockmask, ++ numlockmask | LockMask }; ++ KeyCode code; ++ + if (c < 0 || c >= nclients) { + drawbar(); + XSync(dpy, False); +@@ -1141,6 +1146,15 @@ unmanage(int c) + if (!nclients) + return; + ++ /* ungrab keys */ ++ for (i = 0; i < LENGTH(keys); i++) { ++ if ((code = XKeysymToKeycode(dpy, keys[i].keysym))) { ++ for (j = 0; j < LENGTH(modifiers); j++) { ++ XUngrabKey(dpy, code, keys[i].mod | modifiers[j], clients[c]->win); ++ } ++ } ++ } ++ + if (c == 0) { + /* First client. */ + nclients--; |
