Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
fix(kwinscript): arrange after an activity/desktop change
Browse files Browse the repository at this point in the history
without this fix, restarting kwin and then switching desktops leaves
the windows on the new desktop untiled until something else triggers
an arrange
  • Loading branch information
benemorius authored and gikari committed Jun 23, 2022
1 parent 8d3b5b1 commit c702857
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/kwinscript/driver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c702857

Please sign in to comment.