feat(xwindow): Add label-empty

Allows for custom text, when window title is empty
This commit is contained in:
Keno Goertz
2018-04-02 00:00:16 +02:00
committed by Patrick Ziegler
parent 8f75e685cc
commit d31570fe2f
2 changed files with 13 additions and 3 deletions

View File

@ -30,6 +30,11 @@ namespace modules {
*/
class xwindow_module : public static_module<xwindow_module>, public event_handler<evt::property_notify> {
public:
enum class state {
NONE,
ACTIVE,
EMPTY
};
explicit xwindow_module(const bar_settings&, string);
void update(bool force = false);
@ -43,6 +48,7 @@ namespace modules {
connection& m_connection;
unique_ptr<active_window> m_active;
map<state, label_t> m_statelabels;
label_t m_label;
};
}