Merge pull request #2879 from Emantor/fix/swaybar_position

swaybar: disallow left and right position and print error on default
This commit is contained in:
emersion 2018-10-20 08:35:20 +02:00 committed by GitHub
commit 4bde0eb911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -12,7 +12,7 @@ struct cmd_results *bar_cmd_position(int argc, char **argv) {
if (!config->current_bar) {
return cmd_results_new(CMD_FAILURE, "position", "No bar defined.");
}
char *valid[] = { "top", "bottom", "left", "right" };
char *valid[] = { "top", "bottom" };
for (size_t i = 0; i < sizeof(valid) / sizeof(valid[0]); ++i) {
if (strcasecmp(valid[i], argv[0]) == 0) {
wlr_log(WLR_DEBUG, "Setting bar position '%s' for bar: %s",