Introduce --exclude-titlebar flag for mouse bindings. (#2703)
This introduces the flag --exclude-titlebar for mouse bindings which allows bindings like bindsym --whole-window --border --exclude-titlebar button3 focus fixes #2347
This commit is contained in:
committed by
Michael Stapelberg
parent
1d4e9f5de0
commit
d78fd8d91f
@ -412,9 +412,9 @@ button in the scope of the clicked container (see <<command_criteria>>). You
|
||||
can configure mouse bindings in a similar way to key bindings.
|
||||
|
||||
*Syntax*:
|
||||
-------------------------------------------------------------------------------
|
||||
bindsym [--release] [--border] [--whole-window] [<Modifiers>+]button<n> command
|
||||
-------------------------------------------------------------------------------
|
||||
----------------------------------------------------------------------------------------------------
|
||||
bindsym [--release] [--border] [--whole-window] [--exclude-titlebar] [<Modifiers>+]button<n> command
|
||||
----------------------------------------------------------------------------------------------------
|
||||
|
||||
By default, the binding will only run when you click on the titlebar of the
|
||||
window. If the +--release+ flag is given, it will run when the mouse button
|
||||
@ -424,6 +424,9 @@ 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.
|
||||
|
||||
If the +--exclude-titlebar+ flag is given, the titlebar will not be considered
|
||||
for the keybinding.
|
||||
|
||||
*Examples*:
|
||||
--------------------------------
|
||||
# The middle button over a titlebar kills the window
|
||||
|
Reference in New Issue
Block a user