Skip to content
Snippets Groups Projects
Commit 1da7f7f7 authored by Fabian Homborg's avatar Fabian Homborg
Browse files

Cut down on geometrychanged on start

parent 1c6b56ad
No related branches found
No related tags found
No related merge requests found
......@@ -111,17 +111,18 @@ function TilingManager() {
layout.activate();
});
// We need to reset custom client properties first because this might not be
// the first execution of the script
var existingClients = workspace.clientList();
existingClients.forEach(function(client) {
self.tiles._onClientRemoved(client);
client.tiling_shown = true;
client.tiling_shown = false;
self.tiles.addClient(client);
client.tiling_shown = true;
// Don't reset floating so we don't lose the value over restarts
//client.tiling_floating = null;
});
this.layouts[this._currentDesktop].forEach(function (layout) {
layout._updateAllTiles();
});
// Register global callbacks
workspace.numberDesktopsChanged.connect(function() {
self._onNumberDesktopsChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment