From 70c640b957f2cff08e00783de692e8ab9e17eabf Mon Sep 17 00:00:00 2001 From: Philipp Unger Date: Thu, 7 Sep 2023 01:08:12 +0200 Subject: [PATCH] replace Meta.Rectangle with Mtk.Rectangle --- appIcons.js | 4 ++-- proximity.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appIcons.js b/appIcons.js index 70cd54b..2f5e647 100644 --- a/appIcons.js +++ b/appIcons.js @@ -28,7 +28,7 @@ import GLib from 'gi://GLib'; import Graphene from 'gi://Graphene'; import Gtk from 'gi://Gtk'; import GObject from 'gi://GObject'; -import Meta from 'gi://Meta'; +import Mtk from 'gi://Mtk'; import Shell from 'gi://Shell'; import St from 'gi://St'; @@ -396,7 +396,7 @@ export var TaskbarAppIcon = GObject.registerClass({ if (this.get_stage() == null) return; - let rect = new Meta.Rectangle(); + let rect = new Mtk.Rectangle(); [rect.x, rect.y] = this.get_transformed_position(); [rect.width, rect.height] = this.get_transformed_size(); diff --git a/proximity.js b/proximity.js index 61d356b..9dcff42 100644 --- a/proximity.js +++ b/proximity.js @@ -16,6 +16,7 @@ */ import Meta from 'gi://Meta'; +import Mtk from 'gi://Mtk'; import * as Layout from 'resource:///org/gnome/shell/ui/layout.js'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; @@ -56,7 +57,7 @@ export class ProximityWatch { _updateWatchRect() { let [actorX, actorY] = this.actor.get_position(); - this.rect = new Meta.Rectangle({ + this.rect = new Mtk.Rectangle({ x: actorX - this.threshold[0], y: actorY - this.threshold[1], width: this.actor.width + this.threshold[0] * 2,