Added config directive 'no_focus <criteria>' (#1416)

This commit is contained in:
Ingo Bürk
2015-03-29 17:30:14 +02:00
parent e155447932
commit b5f7c132fc
4 changed files with 25 additions and 1 deletions

View File

@ -31,6 +31,7 @@ state INITIAL:
'hide_edge_borders' -> HIDE_EDGE_BORDERS
'for_window' -> FOR_WINDOW
'assign' -> ASSIGN
'no_focus' -> NO_FOCUS
'focus_follows_mouse' -> FOCUS_FOLLOWS_MOUSE
'mouse_warping' -> MOUSE_WARPING
'force_focus_wrapping' -> FORCE_FOCUS_WRAPPING
@ -150,6 +151,15 @@ state ASSIGN_WORKSPACE:
workspace = string
-> call cfg_assign($workspace)
# no_focus <criteria>
state NO_FOCUS:
'['
-> call cfg_criteria_init(NO_FOCUS_END); CRITERIA
state NO_FOCUS_END:
end
-> call cfg_no_focus()
# Criteria: Used by for_window and assign.
state CRITERIA:
ctype = 'class' -> CRITERION