Skip to content

Commit

Permalink
Merge pull request #286 from andersjohansson/gnome47
Browse files Browse the repository at this point in the history
Support for gnome 47
  • Loading branch information
mzur authored Oct 17, 2024
2 parents ec99a87 + ee737a7 commit 85bcdbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [email protected]/metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"shell-version": [
"46"
"47"
],
"uuid": "[email protected]",
"url": "https://github.com/mzur/gnome-shell-wsmatrix",
Expand Down
14 changes: 7 additions & 7 deletions [email protected]/overview/controlsManagerLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Override from '../Override.js';
import {overview} from 'resource:///org/gnome/shell/ui/main.js';
import {SMALL_WORKSPACE_RATIO, ControlsState} from 'resource:///org/gnome/shell/ui/overviewControls.js';

const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHeight, thumbnailsHeight) {
const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHeight, thumbnailsHeight, spacing) {
const workspaceBox = box.copy();
const [width, height] = workspaceBox.get_size();
const {y1: startY} = this._workAreaBox;
Expand All @@ -18,16 +18,16 @@ const _computeWorkspacesBoxForState = function(state, box, searchHeight, dashHei
break;
case ControlsState.WINDOW_PICKER:
workspaceBox.set_origin(0,
startY + searchHeight + this._spacing +
thumbnailsHeight * rows + this._spacing * expandFraction);
startY + searchHeight + spacing +
thumbnailsHeight * rows + spacing * expandFraction);
workspaceBox.set_size(width,
height -
dashHeight - this._spacing -
searchHeight - this._spacing -
thumbnailsHeight * rows - this._spacing * expandFraction);
dashHeight - spacing -
searchHeight - spacing -
thumbnailsHeight * rows - spacing * expandFraction);
break;
case ControlsState.APP_GRID:
workspaceBox.set_origin(0, startY + searchHeight + this._spacing);
workspaceBox.set_origin(0, startY + searchHeight + spacing);
workspaceBox.set_size(
width,
Math.round(height * rows * SMALL_WORKSPACE_RATIO));
Expand Down

0 comments on commit 85bcdbe

Please sign in to comment.