From c70285705bf90757b839936211fea00afd788fee Mon Sep 17 00:00:00 2001 From: Thomas Stilwell Date: Sat, 18 Jun 2022 06:15:00 -0500 Subject: [PATCH] fix(kwinscript): arrange after an activity/desktop change without this fix, restarting kwin and then switching desktops leaves the windows on the new desktop untiled until something else triggers an arrange --- src/kwinscript/driver/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/kwinscript/driver/index.ts b/src/kwinscript/driver/index.ts index 0c36c434..b0bb6970 100644 --- a/src/kwinscript/driver/index.ts +++ b/src/kwinscript/driver/index.ts @@ -222,6 +222,14 @@ export class DriverImpl implements Driver { "unminimized" ); + this.connect(this.kwinApi.workspace.currentActivityChanged, () => + this.controller.onCurrentSurfaceChanged() + ); + + this.connect(this.kwinApi.workspace.currentDesktopChanged, () => + this.controller.onCurrentSurfaceChanged() + ); + this.connect(this.kwinApi.workspace.clientAdded, onClientAdded); this.connect(this.kwinApi.workspace.clientRemoved, onClientRemoved); this.connect(this.kwinApi.workspace.clientMaximizeSet, onClientMaximizeSet);