Skip to content

Commit a9e5b45

Browse files
committed
fix: use monitorWidth/monitorHeight directly
1 parent b843494 commit a9e5b45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wallpaper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const LiveWallpaper = GObject.registerClass(
116116
this.roundedCornersEffect = new RoundedCornersEffect();
117117
this.backgroundActor.add_effect(this.roundedCornersEffect);
118118

119-
this.setPixelStep(this.monitorWidth.width, this.monitorHeight.height);
119+
this.setPixelStep(this.monitorWidth, this.monitorHeight);
120120
this.setRoundedClipRadius(0.0);
121121
this.setBorderStroke(0);
122122
this.setBorderColor([1.0, 0.0, 0.0, 1.0]);
@@ -135,7 +135,7 @@ export const LiveWallpaper = GObject.registerClass(
135135
})
136136
);
137137
}
138-
this.setRoundedClipBounds(0, 0, this.monitorWidth.width, this.monitorHeight.height);
138+
this.setRoundedClipBounds(0, 0, this.monitorWidth, this.monitorHeight);
139139

140140
this.connect('notify::allocation', () => {
141141
if (!this.wallpaper)

0 commit comments

Comments
 (0)