Add mouse binding pointer position configuration
Add the `--whole-window` switch for mouse bindings. This switch controls what part of the container the pointer must be over to trigger a mouse binding. The default is to only trigger mouse bindings over the titlebars. With this switch, a mouse binding will be triggered over the main part of the window as well. This is a breaking change to the previous behavior, which would trigger a mouse binding with a modifier over any part of the window. fixes #1429
This commit is contained in:
committed by
Michael Stapelberg
parent
f28ce227e3
commit
74b69d6d02
@ -404,12 +404,12 @@ can configure mouse bindings in a similar way to key bindings.
|
||||
|
||||
*Syntax*:
|
||||
----------------------------------
|
||||
bindsym [Modifiers+]button[n] command
|
||||
bindsym [--whole-window] [Modifiers+]button[n] command
|
||||
----------------------------------
|
||||
|
||||
If the binding has no modifiers, it will only run when you click on the
|
||||
titlebar of the window. Otherwise, it will run when any part of the window is
|
||||
clicked.
|
||||
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.
|
||||
|
||||
*Examples*:
|
||||
--------------------------------
|
||||
@ -417,7 +417,7 @@ clicked.
|
||||
bindsym button2 kill
|
||||
|
||||
# The middle button and a modifer over any part of the window kills the window
|
||||
bindsym $mod+button2 kill
|
||||
bindsym --whole-window $mod+button2 kill
|
||||
|
||||
# The right button toggles floating
|
||||
bindsym button3 floating toggle
|
||||
|
Reference in New Issue
Block a user