World: remove config property

This commit is contained in:
Peter Fajdiga
2023-07-15 19:18:34 +02:00
parent bdf62b65e4
commit e67e6f4d62
2 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ class ClientStateTiled {
let lastResize = false;
manager.connect(kwinClient.moveResizedChanged, () => {
if (world.config.untileOnDrag && kwinClient.move) {
if (world.untileOnDrag && kwinClient.move) {
world.untileClient(kwinClient);
return;
}

View File

@@ -1,5 +1,5 @@
class World {
public readonly config: Config;
public readonly untileOnDrag: boolean;
private readonly scrollViewManager: ScrollViewManager;
private readonly clientMap: Map<AbstractClient, ClientWrapper>;
private lastFocusedClient: AbstractClient|null;
@@ -8,7 +8,7 @@ class World {
private readonly screenResizedDelayer: Delayer;
constructor(config: Config) {
this.config = config;
this.untileOnDrag = config.untileOnDrag;
this.clientMap = new Map();
this.lastFocusedClient = null;
this.workspaceSignalManager = initWorkspaceSignalHandlers(this);