Merge pull request from orestisfl/i3bar-version

i3bar log version & correct exit code
This commit is contained in:
Orestis Floros
2021-01-17 00:52:37 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

@ -26,3 +26,4 @@ strongly encouraged to upgrade.
• clear pixmap before drawing to prevent visual grabage in clients using 'Shape'
• i3bar: properly close file descriptors
• i3bar: properly restart status command after config change
• i3bar: exit with 1 when a wrong command line argument is used

@ -128,11 +128,13 @@ int main(int argc, char **argv) {
break;
default:
print_usage(argv[0]);
exit(EXIT_SUCCESS);
exit(EXIT_FAILURE);
break;
}
}
LOG("i3bar version " I3_VERSION "\n");
main_loop = ev_default_loop(0); /* needed in init_xcb_early */
char *atom_sock_path = init_xcb_early();