Skip to content

Commit 85bcdbe

Browse files
authored
Merge pull request #286 from andersjohansson/gnome47
Support for gnome 47
2 parents ec99a87 + ee737a7 commit 85bcdbe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

[email protected]/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"shell-version": [
3-
"46"
3+
"47"
44
],
55
"uuid": "[email protected]",
66
"url": "https://github.com/mzur/gnome-shell-wsmatrix",

[email protected]/overview/controlsManagerLayout.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Override from '../Override.js';
22
import {overview} from 'resource:///org/gnome/shell/ui/main.js';
33
import {SMALL_WORKSPACE_RATIO, ControlsState} from 'resource:///org/gnome/shell/ui/overviewControls.js';
44

5-
const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHeight, thumbnailsHeight) {
5+
const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHeight, thumbnailsHeight, spacing) {
66
const workspaceBox = box.copy();
77
const [width, height] = workspaceBox.get_size();
88
const {y1: startY} = this._workAreaBox;
@@ -18,16 +18,16 @@ const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHei
1818
break;
1919
case ControlsState.WINDOW_PICKER:
2020
workspaceBox.set_origin(0,
21-
startY + searchHeight + this._spacing +
22-
thumbnailsHeight * rows + this._spacing * expandFraction);
21+
startY + searchHeight + spacing +
22+
thumbnailsHeight * rows + spacing * expandFraction);
2323
workspaceBox.set_size(width,
2424
height -
25-
dashHeight - this._spacing -
26-
searchHeight - this._spacing -
27-
thumbnailsHeight * rows - this._spacing * expandFraction);
25+
dashHeight - spacing -
26+
searchHeight - spacing -
27+
thumbnailsHeight * rows - spacing * expandFraction);
2828
break;
2929
case ControlsState.APP_GRID:
30-
workspaceBox.set_origin(0, startY + searchHeight + this._spacing);
30+
workspaceBox.set_origin(0, startY + searchHeight + spacing);
3131
workspaceBox.set_size(
3232
width,
3333
Math.round(height * rows * SMALL_WORKSPACE_RATIO));

0 commit comments

Comments
 (0)