1
0
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:
François Revol 2018-10-05 05:51:56 +02:00
parent 2074dabdaf
commit a4f9474de1
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -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; };
};
/*