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

Set noBorder _before_ connecting to any signals

parent c1997e01
No related branches found
No related tags found
No related merge requests found
...@@ -176,6 +176,11 @@ TileList.prototype.addClient = function(client) { ...@@ -176,6 +176,11 @@ TileList.prototype.addClient = function(client) {
return; return;
} }
var noBorder = readConfig("noBorder", false);
if (noBorder == true) {
client.noBorder = true;
}
this.connectSignals(client); this.connectSignals(client);
// shade can't be activated without borders, so it's okay to handle it here // shade can't be activated without borders, so it's okay to handle it here
...@@ -188,11 +193,6 @@ TileList.prototype.addClient = function(client) { ...@@ -188,11 +193,6 @@ TileList.prototype.addClient = function(client) {
client.keepAbove = false; client.keepAbove = false;
client.keepBelow = true; client.keepBelow = true;
var noBorder = readConfig("noBorder", false);
if (noBorder == true) {
client.noBorder = true;
}
// Check whether the client is part of an existing tile // Check whether the client is part of an existing tile
if (this._indexWithClient(client) == -1) { if (this._indexWithClient(client) == -1) {
this._addTile(client); this._addTile(client);
......
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