From 5f3eaf1eec25eeb5670771250beba723e5930889 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Fri, 7 Mar 2025 16:43:50 +0100 Subject: [PATCH] MockKwinClient: make moveable and resizable dependent on fullscreen --- src/tests/utils/mocks/MockKwinClient.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tests/utils/mocks/MockKwinClient.ts b/src/tests/utils/mocks/MockKwinClient.ts index 611854d..a59145c 100644 --- a/src/tests/utils/mocks/MockKwinClient.ts +++ b/src/tests/utils/mocks/MockKwinClient.ts @@ -9,8 +9,6 @@ class MockKwinClient { public readonly transient: boolean; public readonly move: boolean = false; public resize: boolean = false; - public readonly moveable: boolean = true; - public readonly resizeable: boolean = true; public readonly fullScreenable: boolean = true; public readonly maximizable: boolean = true; public readonly output: Output = { __brand: "Output" }; @@ -96,6 +94,14 @@ class MockKwinClient { } } + public get moveable() { + return !this._fullScreen; + } + + public get resizeable() { + return !this._fullScreen; + } + public get fullScreen() { return this._fullScreen; }