Added an error for unknown modes
This commit is contained in:
parent
b0cfc91e0a
commit
57ea0caf59
@ -222,6 +222,9 @@ void wofi_init(struct map* config) {
|
||||
do_run(inner_box);
|
||||
} else if(strcmp(mode, "dmenu") == 0) {
|
||||
do_dmenu(inner_box);
|
||||
} else {
|
||||
fprintf(stderr, "I would love to show %s but Idk what it is\n", mode);
|
||||
exit(1);
|
||||
}
|
||||
gtk_widget_grab_focus(entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user