window layouter: control maximize by editing rules

This patch adds the missing propagation of the maximized state from the
layout rules to the internal representation of a window. Without this
patch this state could be toggled by clicking on the maximizer button
only.
This commit is contained in:
Norman Feske 2019-06-17 14:38:47 +02:00 committed by Christian Helmuth
parent 8d62f21b40
commit d18f8eea2b
2 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,8 @@ class Window_layouter::Assign : public List_model<Assign>::Element
return Rect(outer.p1() + target_geometry.p1(), outer.area());
}
bool maximized() const { return _maximized; }
/**
* Call 'fn' with 'Registry<Member>' if label matches assignment
*

View File

@ -116,6 +116,7 @@ struct Window_layouter::Main : Operations,
target.geometry(),
_decorator_margins);
member.window.outer_geometry(rect);
member.window.maximized(assign.maximized());
});
});
});