From d368bae5034e40f8eeceda2096542f678dfc94cf Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 27 Jan 2021 12:37:48 -0300 Subject: [PATCH] workspaceThumbnail/thumbnailsBox: Set pivot point Set the pivot point at the center of the ThumbnailsBox so that scaling in and out looks better. Part-of: --- js/ui/workspaceThumbnail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index d7344033c..839ab89e4 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported WorkspaceThumbnail, ThumbnailsBox */ -const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; +const { Clutter, Gio, GLib, GObject, Graphene, Meta, Shell, St } = imports.gi; const DND = imports.ui.dnd; const Main = imports.ui.main; @@ -613,6 +613,7 @@ var ThumbnailsBox = GObject.registerClass({ style_class: 'workspace-thumbnails', reactive: true, x_align: Clutter.ActorAlign.CENTER, + pivot_point: new Graphene.Point({ x: 0.5, y: 0.5 }), }); this._delegate = this;