mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +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.config.ignoreScreen.indexOf(screen) >= 0;
|
||||||
|
|
||||||
this.workingArea = Rect.fromQRect(
|
this.workingArea = Rect.fromQRect(
|
||||||
this.proxy
|
this.proxy.workspace().clientArea(
|
||||||
.workspace()
|
0, // This is PlacementArea
|
||||||
.clientArea(this.kwinApi.KWin.PlacementArea, screen, desktop)
|
screen,
|
||||||
|
desktop
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,13 +276,11 @@ export class DriverWindowImpl implements DriverWindow {
|
|||||||
geometry = this.adjustGeometry(geometry);
|
geometry = this.adjustGeometry(geometry);
|
||||||
if (this.config.preventProtrusion) {
|
if (this.config.preventProtrusion) {
|
||||||
const area = Rect.fromQRect(
|
const area = Rect.fromQRect(
|
||||||
this.proxy
|
this.proxy.workspace().clientArea(
|
||||||
.workspace()
|
0, // This is placement area
|
||||||
.clientArea(
|
this.client.screen,
|
||||||
this.kwinApi.KWin.PlacementArea,
|
this.proxy.workspace().currentDesktop
|
||||||
this.client.screen,
|
)
|
||||||
this.proxy.workspace().currentDesktop
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
if (!area.includes(geometry)) {
|
if (!area.includes(geometry)) {
|
||||||
/* assume windows will extrude only through right and bottom edges */
|
/* assume windows will extrude only through right and bottom edges */
|
||||||
|
Loading…
Reference in New Issue
Block a user