mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Add is-active window rule matcher
This commit is contained in:
@@ -745,12 +745,8 @@ impl State {
|
||||
.layout
|
||||
.find_window_and_output_mut(toplevel.wl_surface())
|
||||
{
|
||||
let new_rules = ResolvedWindowRules::compute(window_rules, WindowRef::Mapped(mapped));
|
||||
drop(config);
|
||||
|
||||
if mapped.rules != new_rules {
|
||||
mapped.rules = new_rules;
|
||||
|
||||
if mapped.recompute_window_rules(window_rules) {
|
||||
drop(config);
|
||||
let output = output.cloned();
|
||||
let window = mapped.window.clone();
|
||||
self.niri.layout.update_window(&window);
|
||||
|
||||
Reference in New Issue
Block a user