mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
layout: Use constraint to resize screenShieldGroup
We want the actor to always fill the entire uiGroup. It seems better and simpler to express that with a contraint than resizing it explicitly on every monitor change. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2351>
This commit is contained in:
parent
8e87ff2975
commit
abe9ba4b0f
1 changed files with 4 additions and 3 deletions
|
|
@ -241,6 +241,10 @@ var LayoutManager = GObject.registerClass({
|
|||
visible: false,
|
||||
clip_to_allocation: true,
|
||||
layout_manager: new Clutter.BinLayout(),
|
||||
constraints: new Clutter.BindConstraint({
|
||||
source: this.uiGroup,
|
||||
coordinate: Clutter.BindCoordinate.ALL,
|
||||
}),
|
||||
});
|
||||
this.addChrome(this.screenShieldGroup);
|
||||
|
||||
|
|
@ -521,9 +525,6 @@ var LayoutManager = GObject.registerClass({
|
|||
}
|
||||
|
||||
_updateBoxes() {
|
||||
this.screenShieldGroup.set_position(0, 0);
|
||||
this.screenShieldGroup.set_size(global.screen_width, global.screen_height);
|
||||
|
||||
if (!this.primaryMonitor)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue