Skip to content

Commit c0efa1a

Browse files
committed
Better restart logic
Now it also retile each window
1 parent 7508247 commit c0efa1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/controller/actions/shortcuts.ts

+8
Original file line numberDiff line numberDiff line change
@@ -356,5 +356,13 @@ export class ShortcutManager {
356356
engineConfig.engineType = engineType;
357357
this.ctrl.driverManager.setEngineConfig(desktop, engineConfig);
358358
this.ctrl.qmlObjects.osd.show("Restart: " + engineName(engineType));
359+
this.ctrl.workspace.windows.forEach(window => {
360+
if (this.ctrl.windowExtensions.get(window)!.isTiled) {
361+
this.ctrl.driverManager.untileWindow(window);
362+
this.ctrl.driverManager.rebuildLayout();
363+
this.ctrl.driverManager.addWindowToPosition(window, null);
364+
this.ctrl.driverManager.rebuildLayout();
365+
}
366+
});
359367
}
360368
}

0 commit comments

Comments
 (0)