define enum ClientAreaOption
This commit is contained in:
10
src/ClientAreaOption.ts
Normal file
10
src/ClientAreaOption.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
enum ClientAreaOption {
|
||||||
|
PlacementArea,
|
||||||
|
MovementArea,
|
||||||
|
MaximizeArea,
|
||||||
|
MaximizeFullArea,
|
||||||
|
FullScreenArea,
|
||||||
|
WorkArea,
|
||||||
|
FullArea,
|
||||||
|
ScreenArea,
|
||||||
|
}
|
||||||
4
src/extern/kwin.d.ts
vendored
4
src/extern/kwin.d.ts
vendored
@@ -5,9 +5,6 @@ declare const KWin: {
|
|||||||
};
|
};
|
||||||
|
|
||||||
declare const workspace: {
|
declare const workspace: {
|
||||||
// Enums
|
|
||||||
PlacementArea: ClientAreaOption;
|
|
||||||
|
|
||||||
// Read-write Properties
|
// Read-write Properties
|
||||||
activeClient: AbstractClient;
|
activeClient: AbstractClient;
|
||||||
desktops: number;
|
desktops: number;
|
||||||
@@ -29,7 +26,6 @@ declare const workspace: {
|
|||||||
clientList(): TopLevel[];
|
clientList(): TopLevel[];
|
||||||
};
|
};
|
||||||
|
|
||||||
type ClientAreaOption = any;
|
|
||||||
type Tile = any;
|
type Tile = any;
|
||||||
|
|
||||||
interface AbstractClient {
|
interface AbstractClient {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class Desktop {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static getClientArea(desktopNumber: number) {
|
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) {
|
private static getTilingArea(clientArea: QRect, config: Desktop.Config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user