replace Meta.Rectangle with Mtk.Rectangle

This commit is contained in:
Philipp Unger
2023-09-07 01:08:12 +02:00
parent a3fc2fd0de
commit 70c640b957
2 changed files with 4 additions and 3 deletions

View File

@@ -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();

View File

@@ -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,