config: add just-mapped window criteria
This commit is contained in:
parent
e36ccd560c
commit
5f1268cada
16 changed files with 95 additions and 4 deletions
|
|
@ -56,7 +56,7 @@ impl Parser for WindowMatchParser<'_> {
|
|||
title,
|
||||
title_regex,
|
||||
),
|
||||
(app_id, app_id_regex, floating, visible, urgent, focused, fullscreen),
|
||||
(app_id, app_id_regex, floating, visible, urgent, focused, fullscreen, just_mapped),
|
||||
) = ext.extract((
|
||||
(
|
||||
opt(str("name")),
|
||||
|
|
@ -77,6 +77,7 @@ impl Parser for WindowMatchParser<'_> {
|
|||
opt(bol("urgent")),
|
||||
opt(bol("focused")),
|
||||
opt(bol("fullscreen")),
|
||||
opt(bol("just-mapped")),
|
||||
),
|
||||
))?;
|
||||
let mut not = None;
|
||||
|
|
@ -127,6 +128,7 @@ impl Parser for WindowMatchParser<'_> {
|
|||
urgent: urgent.despan(),
|
||||
focused: focused.despan(),
|
||||
fullscreen: fullscreen.despan(),
|
||||
just_mapped: just_mapped.despan(),
|
||||
types,
|
||||
client,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue