forge
Explore
Log in

Don't you dare go Hollow

Set is-active-in-column to true for unmapped windows (#934)

Browse files at this commit

89678c7b1e6ebe6ec5411db5a2b99bd6bea63565UnverifiedFrans Skarman and Ivan MolodetskikhParent: 098c826
* Set is-active-in-column to true for unmapped windows

* Update wiki/Configuration:-Window-Rules.md

---------
src/window/mapped.rsmodified+1 -1
@@ -165,7 +165,7 @@ impl Mapped {
165 rules,165 rules,
166 need_to_recompute_rules: false,166 need_to_recompute_rules: false,
167 is_focused: false,167 is_focused: false,
168- is_active_in_column: false,168+ is_active_in_column: true,
169 is_floating: false,169 is_floating: false,
170 block_out_buffer: RefCell::new(SolidColorBuffer::new((0., 0.), [0., 0., 0., 1.])),170 block_out_buffer: RefCell::new(SolidColorBuffer::new((0., 0.), [0., 0., 0., 1.])),
171 animate_next_configure: false,171 animate_next_configure: false,
src/window/mod.rsmodified+1 -1
@@ -116,7 +116,7 @@ impl<'a> WindowRef<'a> {
116 116
117 pub fn is_active_in_column(self) -> bool {117 pub fn is_active_in_column(self) -> bool {
118 match self {118 match self {
119- WindowRef::Unmapped(_) => false,119+ WindowRef::Unmapped(_) => true,
120 WindowRef::Mapped(mapped) => mapped.is_active_in_column(),120 WindowRef::Mapped(mapped) => mapped.is_active_in_column(),
121 }121 }
122 }122 }
wiki/Configuration:-Window-Rules.mdmodified+2 -0
@@ -194,6 +194,8 @@ Matches the window that is the "active" window in its column.
194 Contrary to `is-active`, there is always one `is-active-in-column` window in each column.194 Contrary to `is-active`, there is always one `is-active-in-column` window in each column.
195 It is the window that was last focused in the column, i.e. the one that will gain focus if this column is focused.195 It is the window that was last focused in the column, i.e. the one that will gain focus if this column is focused.
196 196
197+<sup>Since: next release</sup> This rule will match `true` during the initial window opening.
198+
197 ```kdl199 ```kdl
198 window-rule {200 window-rule {
199 match is-active-in-column=true201 match is-active-in-column=true