Watermark refactoring, don't handle changes, only send when necessary

This commit is contained in:
Lauri Kasanen
2024-01-12 10:46:13 +02:00
parent e8b54db6bf
commit eef8e7264f
7 changed files with 50 additions and 49 deletions

View File

@@ -198,6 +198,10 @@ namespace rfb {
std::vector<unsigned char> data;
};
virtual bool sendWatermark() const {
return false;
}
protected:
void setState(stateEnum s) { state_ = s; }