commands/bar: remove left and right from allowed positions

"left" and "right" are not allowed positions for swaybar, remove them.
This commit is contained in:
Rouven Czerwinski 2018-10-19 19:11:21 +02:00
parent f52825336c
commit 17fb3b6994

View File

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