From 587dc6c84d2fe7c20684f9d19024a0cac6d9060f Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sun, 27 Oct 2019 13:32:45 +0100 Subject: [PATCH] bar: Make module separator a label Some people use text modules instead of the `separator` key in the bar section to better configure the separator (colors, fonts). Since we disallowed the same module being used multiple times in #1534, this will now print an error message. This should help with this a bit. Ref #1913 --- include/components/builder.hpp | 4 ---- include/components/types.hpp | 8 +++++++- include/drawtypes/label.hpp | 3 --- include/drawtypes/progressbar.hpp | 4 ---- include/modules/meta/base.hpp | 2 -- src/components/bar.cpp | 3 ++- src/components/controller.cpp | 6 +++++- 7 files changed, 14 insertions(+), 16 deletions(-) diff --git a/include/components/builder.hpp b/include/components/builder.hpp index 2afd291e..a14d55f0 100644 --- a/include/components/builder.hpp +++ b/include/components/builder.hpp @@ -10,10 +10,6 @@ POLYBAR_NS using std::map; // fwd decl -namespace drawtypes { - class label; - using label_t = shared_ptr