mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
destroys empty workspace + minor bugfixes
This commit is contained in:
parent
4aeaaa8abc
commit
beabb12d63
9 changed files with 36 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue