destroys empty workspace + minor bugfixes

This commit is contained in:
Taiyu 2015-08-10 17:32:50 -07:00
parent 4aeaaa8abc
commit beabb12d63
9 changed files with 36 additions and 15 deletions

View file

@ -9,6 +9,7 @@
#include "config.h"
bool load_config() {
sway_log(L_INFO, "Loading config");
// TODO: Allow use of more config file locations
const char *name = "/.sway/config";
const char *home = getenv("HOME");
@ -65,7 +66,7 @@ struct sway_config *read_config(FILE *file, bool is_active) {
goto _continue;
}
if (!temp_depth && handle_command(config, line) != 0) {
if (!temp_depth && handle_command(config, line) != true) {
success = false;
}
@ -76,7 +77,7 @@ _continue:
free(line);
}
if (!success) {
if (success == false) {
exit(1);
}