Tiled: untile when tiling using Kwin's tiling system

This commit is contained in:
Peter Fajdiga
2023-08-25 17:15:12 +02:00
parent 0bdb4af0e6
commit 37e9b85279
2 changed files with 9 additions and 0 deletions

1
src/extern.d.ts vendored
View File

@@ -8,6 +8,7 @@ declare const options;
type AbstractClient = any;
type TopLevel = any;
type X11Client = any;
type Tile = any;
type QRect = any;
type QSignal = any;
type QQmlTimer = any;

View File

@@ -93,6 +93,14 @@ namespace ClientState {
});
});
manager.connect(kwinClient.tileChanged, (tile: Tile) => {
if (tile !== null) {
world.do((clientManager, desktopManager) => {
clientManager.untileClient(kwinClient);
})
}
});
return manager;
}