wiki: Add is-focused example
Browse files at this commit5e7eafb2fdd6755633c322ae556e9a4651bdb369Parent: 41b13aa1 changed file +6 -0
wiki/Configuration:-Window-Rules.mdmodified+6 -0
| @@ -148,6 +148,12 @@ Contrary to `is-active`, there can only be a single focused window. | |||
| 148 | Also, when opening a layer-shell application launcher or pop-up menu, the keyboard focus goes to layer-shell. | 148 | Also, when opening a layer-shell application launcher or pop-up menu, the keyboard focus goes to layer-shell. |
| 149 | While layer-shell has the keyboard focus, windows will not match this rule. | 149 | While layer-shell has the keyboard focus, windows will not match this rule. |
| 150 | 150 | ||
| 151 | +``` | ||
| 152 | +window-rule { | ||
| 153 | + match is-focused=true | ||
| 154 | +} | ||
| 155 | +``` | ||
| 156 | + | ||
| 151 | ### Window Opening Properties | 157 | ### Window Opening Properties |
| 152 | 158 | ||
| 153 | These properties apply once, when a window first opens. | 159 | These properties apply once, when a window first opens. |