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
This commit is contained in:
Thomas Stilwell 2022-06-18 06:15:00 -05:00 committed by Mikhail Zolotukhin
parent 8d3b5b1b10
commit c70285705b

View File

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