Handle button release events

This enables the --release switch on mouse button bindings.
This commit is contained in:
Tony Crisci
2015-02-10 17:46:02 -05:00
parent 3f126c61c4
commit c815fc798d
3 changed files with 15 additions and 7 deletions

View File

@ -404,17 +404,18 @@ can configure mouse bindings in a similar way to key bindings.
*Syntax*:
----------------------------------
bindsym [--whole-window] [Modifiers+]button[n] command
bindsym [--release] [--whole-window] [Modifiers+]button[n] command
----------------------------------
By default, the binding will only run when you click on the titlebar of the
window. If the +--whole-window+ flag is given, it will run when any part of the
window is clicked.
window is clicked. If the +--release+ flag is given, it will run when the mouse
button is released.
*Examples*:
--------------------------------
# The middle button over a titlebar kills the window
bindsym button2 kill
bindsym --release button2 kill
# The middle button and a modifer over any part of the window kills the window
bindsym --whole-window $mod+button2 kill