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
@ -321,6 +321,8 @@ state BINDING:
|
||||
->
|
||||
whole_window = '--whole-window'
|
||||
->
|
||||
exclude_titlebar = '--exclude-titlebar'
|
||||
->
|
||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl', 'Mode_switch', 'Group1', 'Group2', 'Group3', 'Group4', '$mod'
|
||||
->
|
||||
'+'
|
||||
@ -335,8 +337,10 @@ state BINDCOMMAND:
|
||||
->
|
||||
whole_window = '--whole-window'
|
||||
->
|
||||
exclude_titlebar = '--exclude-titlebar'
|
||||
->
|
||||
command = string
|
||||
-> call cfg_binding($bindtype, $modifiers, $key, $release, $border, $whole_window, $command)
|
||||
-> call cfg_binding($bindtype, $modifiers, $key, $release, $border, $whole_window, $exclude_titlebar, $command)
|
||||
|
||||
################################################################################
|
||||
# Mode configuration
|
||||
@ -376,6 +380,8 @@ state MODE_BINDING:
|
||||
->
|
||||
whole_window = '--whole-window'
|
||||
->
|
||||
exclude_titlebar = '--exclude-titlebar'
|
||||
->
|
||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl', 'Mode_switch', 'Group1', 'Group2', 'Group3', 'Group4', '$mod'
|
||||
->
|
||||
'+'
|
||||
@ -390,8 +396,10 @@ state MODE_BINDCOMMAND:
|
||||
->
|
||||
whole_window = '--whole-window'
|
||||
->
|
||||
exclude_titlebar = '--exclude-titlebar'
|
||||
->
|
||||
command = string
|
||||
-> call cfg_mode_binding($bindtype, $modifiers, $key, $release, $border, $whole_window, $command); MODE
|
||||
-> call cfg_mode_binding($bindtype, $modifiers, $key, $release, $border, $whole_window, $exclude_titlebar, $command); MODE
|
||||
|
||||
################################################################################
|
||||
# Bar configuration (i3bar)
|
||||
|
Reference in New Issue
Block a user