From 55f63935ab9319da8e145b49edc1a7ae3e6782c6 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Thu, 7 Jan 2016 21:43:00 +0100 Subject: Implement bindsym --release This is a "simple" version of --release (same as i3) that only supports a binding that contain one normal key. e.g.: bindsym --release $mod+x exec somthing-fun I didn't bother implementing it for a combination like `$mod+x+z` since it is a bit tricky to get right and also a bit weird to actually do on a keyboard. --- include/input_state.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/input_state.h') 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); -- cgit v1.2.3-54-g00ecf