From 84e2a06b3509286d0e32fb97ddf205840176a033 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Fri, 29 Sep 2023 08:56:45 +0200 Subject: [PATCH] Tiled: define type `WindowState` --- src/world/clientState/Tiled.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/world/clientState/Tiled.ts b/src/world/clientState/Tiled.ts index ff0f7fa..656331e 100644 --- a/src/world/clientState/Tiled.ts +++ b/src/world/clientState/Tiled.ts @@ -1,7 +1,7 @@ namespace ClientState { export class Tiled implements State { public readonly window: Window; - private readonly defaultState: { skipSwitcher: boolean }; + private readonly defaultState: Tiled.WindowState; private readonly signalManager: SignalManager; constructor(world: World, client: ClientWrapper, grid: Grid) { @@ -158,7 +158,7 @@ namespace ClientState { client.setMaximize(false, false); } - private static restoreClientAfterTiling(client: ClientWrapper, config: LayoutConfig, defaultState: { skipSwitcher: boolean }, screenSize: QRect) { + private static restoreClientAfterTiling(client: ClientWrapper, config: LayoutConfig, defaultState: Tiled.WindowState, screenSize: QRect) { if (config.skipSwitcher) { client.kwinClient.skipSwitcher = defaultState.skipSwitcher; } @@ -173,4 +173,10 @@ namespace ClientState { client.ensureVisible(screenSize); } } + + namespace Tiled { + export type WindowState = { + skipSwitcher: boolean, + } + } }