aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 09:43:12 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-06 09:43:44 -0400
commitd77a0119f46ab977beca6725efed38fcb5f9e434 (patch)
tree27b0d5f9ff6958377aa4b8904516ed6df399fb77
parentcca420b2f83da0af97de82677b7027710a0fd8d7 (diff)
downloadsway-d77a0119f46ab977beca6725efed38fcb5f9e434.zip
sway-d77a0119f46ab977beca6725efed38fcb5f9e434.tar.gz
sway-d77a0119f46ab977beca6725efed38fcb5f9e434.tar.bz2
Avoid arranging windows while reloading config
-rw-r--r--sway/tree/layout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 65fd5d4..343f349 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -228,6 +228,9 @@ static void apply_vert_layout(struct sway_container *container, const double x,
void arrange_windows(struct sway_container *container,
double width, double height) {
+ if (config->reloading) {
+ return;
+ }
int i;
if (width == -1 || height == -1) {
width = container->width;
@@ -246,7 +249,6 @@ void arrange_windows(struct sway_container *container,
double x = 0, y = 0;
switch (container->type) {
case C_ROOT:
- // TODO: wlr_output_layout probably
for (i = 0; i < container->children->length; ++i) {
struct sway_container *output = container->children->items[i];
wlr_log(L_DEBUG, "Arranging output '%s' at %f,%f",