DesktopManager: remove addDesktop call in constructor

This commit is contained in:
Peter Fajdiga
2025-10-21 22:57:02 +02:00
parent 99bf71f0b9
commit 8149100aac
2 changed files with 0 additions and 7 deletions

View File

@@ -10,8 +10,6 @@ class DesktopManager {
private readonly layoutConfig: LayoutConfig,
private readonly focusPasser: FocusPassing.Passer,
private readonly desktopFilter: DesktopFilter,
currentActivity: string,
currentDesktop: KwinDesktop,
) {
this.pinManager = pinManager;
this.config = config;
@@ -20,9 +18,6 @@ class DesktopManager {
this.selectedScreen = Workspace.activeScreen;
this.kwinActivities = new Set(Workspace.activities);
this.kwinDesktops = new Set(Workspace.desktops);
if (this.desktopFilter.shouldWorkOnDesktop(currentDesktop)) {
this.addDesktop(currentActivity, currentDesktop);
}
}
public getDesktop(activity: string, kwinDesktop: KwinDesktop) {

View File

@@ -69,8 +69,6 @@ class World {
layoutConfig,
focusPasser,
new DesktopFilter(config.tiledDesktops),
Workspace.currentActivity,
Workspace.currentDesktop,
);
this.clientManager = new ClientManager(config, this, this.desktopManager, this.pinManager);
this.addExistingClients();