mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 18:15:17 +00:00
Add a display-output flag to tell if it's graphical-based
or text-only.
This commit is contained in:
parent
2074dabdaf
commit
a4f9474de1
@ -72,7 +72,7 @@ void do_register_display_output(const std::string &name,
|
||||
} // namespace priv
|
||||
|
||||
display_output_base::display_output_base(const std::string &name_)
|
||||
: name(name_), is_active(false), priority(-1) {
|
||||
: name(name_), is_active(false), is_graphical(false), priority(-1) {
|
||||
priv::do_register_display_output(name, this);
|
||||
}
|
||||
|
||||
|
@ -55,6 +55,7 @@ class display_output_base {
|
||||
public:
|
||||
const std::string name;
|
||||
bool is_active;
|
||||
bool is_graphical;
|
||||
int priority;
|
||||
|
||||
explicit display_output_base(const std::string &name_);
|
||||
@ -82,6 +83,7 @@ class display_output_base {
|
||||
|
||||
protected:
|
||||
virtual bool active() { return is_active; };
|
||||
virtual bool graphical() { return is_graphical; };
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user