MockKwinClient: make moveable and resizable dependent on fullscreen

This commit is contained in:
Peter Fajdiga
2025-03-07 16:43:50 +01:00
parent 4a680177f6
commit 5f3eaf1eec

View File

@@ -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;
}