diff options
| author | Mikkel Oscar Lyderik <[email protected]> | 2016-02-24 18:52:57 +0100 | 
|---|---|---|
| committer | Mikkel Oscar Lyderik <[email protected]> | 2016-02-27 22:12:35 +0100 | 
| commit | e15a8a03769736f588f68ae5e1cc24611ed334ae (patch) | |
| tree | ee47cb6a964a2507447ae082eef25eb3ad84783a /sway/commands.c | |
| parent | af7a251806661bbe7ed7a7573ffd8e16ef4b28a2 (diff) | |
Improve how swaybars are spawned
Diffstat (limited to 'sway/commands.c')
| -rw-r--r-- | sway/commands.c | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/sway/commands.c b/sway/commands.c index 548b7d9f..3b8556ca 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1526,14 +1526,7 @@ static struct cmd_results *cmd_reload(int argc, char **argv) {  	}  	if (!load_config(NULL)) return cmd_results_new(CMD_FAILURE, "reload", "Error(s) reloading config."); -	int i; -	swayc_t *cont = NULL; -	for (i = 0; i < root_container.children->length; ++i) { -		cont = root_container.children->items[i]; -		if (cont->type == C_OUTPUT) { -			load_swaybars(cont); -		} -	} +	load_swaybars();  	arrange_windows(&root_container, -1, -1);  	return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 
