diff --git a/src/kwinscript/driver/surface.ts b/src/kwinscript/driver/surface.ts index b14a9521..51628797 100644 --- a/src/kwinscript/driver/surface.ts +++ b/src/kwinscript/driver/surface.ts @@ -56,9 +56,11 @@ export class DriverSurfaceImpl implements DriverSurface { this.config.ignoreScreen.indexOf(screen) >= 0; this.workingArea = Rect.fromQRect( - this.proxy - .workspace() - .clientArea(this.kwinApi.KWin.PlacementArea, screen, desktop) + this.proxy.workspace().clientArea( + 0, // This is PlacementArea + screen, + desktop + ) ); } diff --git a/src/kwinscript/driver/window.ts b/src/kwinscript/driver/window.ts index 6ae385f3..872661bf 100644 --- a/src/kwinscript/driver/window.ts +++ b/src/kwinscript/driver/window.ts @@ -276,13 +276,11 @@ export class DriverWindowImpl implements DriverWindow { geometry = this.adjustGeometry(geometry); if (this.config.preventProtrusion) { const area = Rect.fromQRect( - this.proxy - .workspace() - .clientArea( - this.kwinApi.KWin.PlacementArea, - this.client.screen, - this.proxy.workspace().currentDesktop - ) + this.proxy.workspace().clientArea( + 0, // This is placement area + this.client.screen, + this.proxy.workspace().currentDesktop + ) ); if (!area.includes(geometry)) { /* assume windows will extrude only through right and bottom edges */