aboutsummaryrefslogtreecommitdiff
path: root/parser-specs
diff options
context:
space:
mode:
authorOrestis Floros <orestisf1993@gmail.com>2017-12-08 02:23:15 +0200
committerOrestis Floros <orestisf1993@gmail.com>2017-12-08 12:16:22 +0200
commit315ff17563fd703b2f5117b2ec4d46e89389d323 (patch)
tree9758cf650a284f3a008f88f3f2678d3120853e86 /parser-specs
parentee0c0160912faacba440292911e385b54ff1766e (diff)
downloadi3-315ff17563fd703b2f5117b2ec4d46e89389d323.tar.gz
i3-315ff17563fd703b2f5117b2ec4d46e89389d323.zip
Add '--release' flag for bindsym in the bar block
i3bar's handle_button is modified to also handle XCB_BUTTON_RELEASE events. During these button release events, only custom commands are checked to avoid sending multiple workspace ipc messages. The way this patch is implemented will allow to assign a custom command for both the press and release of the same button: bar { ... bindsym buttonX exec command1 bindsym --release buttonX exec command2 } Fixes #3068.
Diffstat (limited to 'parser-specs')
-rw-r--r--parser-specs/config.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/parser-specs/config.spec b/parser-specs/config.spec
index c31567a6..3d3ffb28 100644
--- a/parser-specs/config.spec
+++ b/parser-specs/config.spec
@@ -501,12 +501,16 @@ state BAR_WHEEL_DOWN_CMD:
-> call cfg_bar_wheel_down_cmd($command); BAR
state BAR_BINDSYM:
+ release = '--release'
+ ->
button = word
-> BAR_BINDSYM_COMMAND
state BAR_BINDSYM_COMMAND:
+ release = '--release'
+ ->
command = string
- -> call cfg_bar_bindsym($button, $command); BAR
+ -> call cfg_bar_bindsym($button, $release, $command); BAR
state BAR_POSITION:
position = 'top', 'bottom'