]> git.sur5r.net Git - i3/i3/commit
Add '--release' flag for bindsym in the bar block 3070/head
authorOrestis Floros <orestisf1993@gmail.com>
Fri, 8 Dec 2017 00:23:15 +0000 (02:23 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Fri, 8 Dec 2017 10:16:22 +0000 (12:16 +0200)
commit315ff17563fd703b2f5117b2ec4d46e89389d323
tree9758cf650a284f3a008f88f3f2678d3120853e86
parentee0c0160912faacba440292911e385b54ff1766e
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.
docs/userguide
i3bar/include/configuration.h
i3bar/src/config.c
i3bar/src/xcb.c
include/config_directives.h
include/configuration.h
parser-specs/config.spec
src/config_directives.c
src/ipc.c
testcases/t/525-i3bar-mouse-bindings.t