Merge pull request #1632 from Deiz/binding-border

Add a --border flag to enable mouse binds to trigger on border click
This commit is contained in:
Michael Stapelberg
2015-04-19 09:28:08 -07:00
9 changed files with 45 additions and 22 deletions

View File

@ -405,13 +405,16 @@ can configure mouse bindings in a similar way to key bindings.
*Syntax*:
----------------------------------
bindsym [--release] [--whole-window] [Modifiers+]button[n] command
bindsym [--release] [--border] [--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. If the +--release+ flag is given, it will run when the mouse
button is released.
window. If the +--release+ flag is given, it will run when the mouse button
is released.
If the +--whole-window+ flag is given, the binding will also run when any part
of the window is clicked, with the exception of the border. To have a bind run
when the border is clicked, specify the +--border+ flag.
*Examples*:
--------------------------------