World: remove config property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user