kwin.d.ts: add KwinDesktop (WIP)

This commit is contained in:
Peter Fajdiga
2024-03-02 21:10:34 +01:00
parent 1f563dae01
commit 1927ae445d

View File

@@ -5,7 +5,7 @@ declare const KWin: {
declare const Workspace: {
readonly desktops: number;
readonly currentDesktop: number;
readonly currentDesktop: KwinDesktop;
readonly currentActivity: string;
readonly windows: KwinClient[];
@@ -50,7 +50,6 @@ interface KwinClient {
readonly normalWindow: boolean;
readonly managed: boolean;
opacity: number;
fullScreen: boolean;
activities: string[]; // empty array means all activities
skipSwitcher: boolean;
@@ -59,7 +58,7 @@ interface KwinClient {
shade: boolean;
minimized: boolean;
frameGeometry: QmlRect;
desktop: number; // -1 means all desktops // TODO: Replace with desktops
desktops: KwinDesktop[]; // TODO: is empty = all desktops?
tile: Tile;
opacity: number;
@@ -77,3 +76,7 @@ interface KwinClient {
setMaximize(vertically: boolean, horizontally: boolean): void;
}
interface KwinDesktop {
readonly id: string;
}