mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-04 13:37:43 +03:00
refactor: replace broken enum ClientAreaOption enum with a number
This commit is contained in:
parent
93e6f1406b
commit
aa4504e32a
@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user