MockKwinClient: fix set fullScreen

This commit is contained in:
Peter Fajdiga
2024-09-20 22:27:37 +02:00
parent b3f581c386
commit c8f0ed87a4

View File

@@ -100,6 +100,10 @@ class MockKwinClient {
() => {
if (oldFullScreen && !fullScreen) {
// when switching from full-screen to windowed, Kwin sometimes first adds the frame before changing the frameGeometry to the final value
if (rectEquals(this.frameGeometry, this.windowedFrameGeometry)) {
// already has windowed frame geometry, don't undo that
return;
}
runOneOf(
() => {
this.frameGeometry = new MockQmlRect(