mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-11 00:15:37 +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,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 */
|
||||
|
Loading…
Reference in New Issue
Block a user