Last active
September 9, 2019 22:53
-
-
Save eternal-sorrow/396d642a7c6be712157cc24376298faf to your computer and use it in GitHub Desktop.
Patch for sway so that bindsym --to-code was the default behavior of bindsym
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/sway/commands/bind.c 2019-05-12 03:59:43.614399853 +1000 | |
+++ b/sway/commands/bind.c 2019-05-12 04:02:03.259677398 +1000 | |
@@ -349,10 +349,6 @@ | |
binding->flags |= BINDING_BORDER | BINDING_CONTENTS | BINDING_TITLEBAR; | |
} else if (strcmp("--border", argv[0]) == 0) { | |
binding->flags |= BINDING_BORDER; | |
- } else if (strcmp("--to-code", argv[0]) == 0) { | |
- if (!bindcode) { | |
- binding->flags |= BINDING_CODE; | |
- } | |
} else if (strcmp("--exclude-titlebar", argv[0]) == 0) { | |
exclude_titlebar = true; | |
} else if (strncmp("--input-device=", argv[0], | |
@@ -634,10 +630,6 @@ | |
} | |
bool translate_binding(struct sway_binding *binding) { | |
- if ((binding->flags & BINDING_CODE) == 0) { | |
- return true; | |
- } | |
- | |
switch (binding->type) { | |
// a bindsym to translate | |
case BINDING_KEYSYM: | |
--- a/include/sway/config.h 2019-05-12 04:03:27.180233029 +1000 | |
+++ b/include/sway/config.h 2019-05-12 04:04:36.008351887 +1000 | |
@@ -38,7 +38,6 @@ | |
BINDING_BORDER=4, // mouse only; trigger on container border | |
BINDING_CONTENTS=8, // mouse only; trigger on container contents | |
BINDING_TITLEBAR=16, // mouse only; trigger on container titlebar | |
- BINDING_CODE=32, // keyboard only; convert keysyms into keycodes | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment