mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
workspace: Handle minimized windows in layout
The new layout manager always uses the window's regular size and position for the floating state, but the preview of minimized windows should be hidden instead. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1345
This commit is contained in:
parent
c26860dcb7
commit
ff89693998
1 changed files with 11 additions and 4 deletions
|
|
@ -585,10 +585,17 @@ var WorkspaceLayout = GObject.registerClass({
|
|||
|
||||
child.slotId = index;
|
||||
|
||||
workspaceBox.x1 = child.boundingBox.x - this._workarea.x;
|
||||
workspaceBox.x2 = workspaceBox.x1 + child.boundingBox.width;
|
||||
workspaceBox.y1 = child.boundingBox.y - this._workarea.y;
|
||||
workspaceBox.y2 = workspaceBox.y1 + child.boundingBox.height;
|
||||
if (windowInfo.metaWindow.showing_on_its_workspace()) {
|
||||
workspaceBox.x1 = child.boundingBox.x - this._workarea.x;
|
||||
workspaceBox.x2 = workspaceBox.x1 + child.boundingBox.width;
|
||||
workspaceBox.y1 = child.boundingBox.y - this._workarea.y;
|
||||
workspaceBox.y2 = workspaceBox.y1 + child.boundingBox.height;
|
||||
} else {
|
||||
workspaceBox.set_origin(this._workarea.x, this._workarea.y);
|
||||
workspaceBox.set_size(0, 0);
|
||||
|
||||
child.opacity = this._stateAdjustment.value * 255;
|
||||
}
|
||||
|
||||
workspaceBox.scale(allocationScale);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue