From 439a9e3d08d01adcbe50de1b149ca96d0ed17f43 Mon Sep 17 00:00:00 2001 From: flexagoon Date: Fri, 19 Jul 2024 11:28:38 -0700 Subject: [PATCH] refactor: initialize Graphene.Point directly This was previously not possible due to a bug in @girs/gjs, but the bug is now fixed. See https://github.com/gjsify/ts-for-gir/issues/170 --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 8a54f93..9ca8cd9 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -336,7 +336,7 @@ const OverviewShadowActor = GObject.registerClass( super({ source, // the source shadow actor shown in desktop name: constants.OVERVIEW_SHADOW_ACTOR, - pivotPoint: new Graphene.Point().init(0.5, 0.5), + pivotPoint: new Graphene.Point({x: 0.5, y: 0.5}), }); this._window_preview = window_preview;