refactor: replace broken enum ClientAreaOption enum with a number

This commit is contained in:
Mikhail Zolotukhin 2022-03-24 23:12:48 +03:00 committed by Genda
parent 93e6f1406b
commit aa4504e32a
2 changed files with 10 additions and 10 deletions

View File

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

View File

@ -276,10 +276,8 @@ 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.proxy.workspace().clientArea(
0, // This is placement area
this.client.screen,
this.proxy.workspace().currentDesktop
)