mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-28 01:28:30 +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
|
} // namespace priv
|
||||||
|
|
||||||
display_output_base::display_output_base(const std::string &name_)
|
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);
|
priv::do_register_display_output(name, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ class display_output_base {
|
|||||||
public:
|
public:
|
||||||
const std::string name;
|
const std::string name;
|
||||||
bool is_active;
|
bool is_active;
|
||||||
|
bool is_graphical;
|
||||||
int priority;
|
int priority;
|
||||||
|
|
||||||
explicit display_output_base(const std::string &name_);
|
explicit display_output_base(const std::string &name_);
|
||||||
@ -82,6 +83,7 @@ class display_output_base {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool active() { return is_active; };
|
virtual bool active() { return is_active; };
|
||||||
|
virtual bool graphical() { return is_graphical; };
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user