define enum ClientAreaOption

This commit is contained in:
Peter Fajdiga
2023-09-01 14:03:52 +02:00
parent 4d784c5d01
commit 0dfc29b1eb
3 changed files with 11 additions and 5 deletions

10
src/ClientAreaOption.ts Normal file
View File

@@ -0,0 +1,10 @@
enum ClientAreaOption {
PlacementArea,
MovementArea,
MaximizeArea,
MaximizeFullArea,
FullScreenArea,
WorkArea,
FullArea,
ScreenArea,
}

View File

@@ -5,9 +5,6 @@ declare const KWin: {
};
declare const workspace: {
// Enums
PlacementArea: ClientAreaOption;
// Read-write Properties
activeClient: AbstractClient;
desktops: number;
@@ -29,7 +26,6 @@ declare const workspace: {
clientList(): TopLevel[];
};
type ClientAreaOption = any;
type Tile = any;
interface AbstractClient {

View File

@@ -29,7 +29,7 @@ class Desktop {
}
private static getClientArea(desktopNumber: number) {
return workspace.clientArea(workspace.PlacementArea, 0, desktopNumber);
return workspace.clientArea(ClientAreaOption.PlacementArea, 0, desktopNumber);
}
private static getTilingArea(clientArea: QRect, config: Desktop.Config) {