bar: allow explicit backend selection

This commit is contained in:
Daniel Eklöf 2019-05-11 10:43:14 +02:00
parent 586cb8a0dd
commit 473802cab8
3 changed files with 53 additions and 18 deletions

View file

@ -15,8 +15,11 @@ struct bar {
};
enum bar_location { BAR_TOP, BAR_BOTTOM };
enum bar_backend { BAR_BACKEND_AUTO, BAR_BACKEND_XCB, BAR_BACKEND_WAYLAND };
struct bar_config {
enum bar_backend backend;
const char *monitor;
enum bar_location location;
int height;