aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-01-07 16:38:33 -0500
committerDrew DeVault <sir@cmpwn.com>2016-01-07 16:38:33 -0500
commit320c2915b0aeb4bbecb753bf00091e24905c5652 (patch)
treea854f1068b7360952835b38bc38a1138bf1de7f0 /include
parent8f5de70c93b2afaab0dd7d384c58ff3d3007193c (diff)
parent55f63935ab9319da8e145b49edc1a7ae3e6782c6 (diff)
Merge pull request #439 from mikkeloscar/bindsym-release
Implement bindsym --release
Diffstat (limited to 'include')
-rw-r--r--include/config.h1
-rw-r--r--include/input_state.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 5e1c39f3..8220f804 100644
--- a/include/config.h
+++ b/include/config.h
@@ -22,6 +22,7 @@ struct sway_variable {
*/
struct sway_binding {
int order;
+ bool release;
list_t *keys;
uint32_t modifiers;
char *command;
diff --git a/include/input_state.h b/include/input_state.h
index 79e27d91..903301fb 100644
--- a/include/input_state.h
+++ b/include/input_state.h
@@ -9,6 +9,9 @@
// returns true if key has been pressed, otherwise false
bool check_key(uint32_t key_sym, uint32_t key_code);
+// returns true if key_sym matches latest released key.
+bool check_released_key(uint32_t key_sym);
+
// sets a key as pressed
void press_key(uint32_t key_sym, uint32_t key_code);