13
0

Allow to override visibility tracker

This is in preparation to keep track of external UI plugin UIs
This commit is contained in:
Robin Gareus 2023-11-26 19:34:27 +01:00
parent 04be971238
commit 73b44532f1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 2 deletions

View File

@ -50,8 +50,8 @@ public:
void present ();
void maybe_show ();
bool visible() const;
bool fully_visible() const;
virtual bool visible() const;
virtual bool fully_visible() const;
const std::string& name() const { return _name; }
const std::string& menu_name() const { return _menu_name; }

View File

@ -134,6 +134,8 @@ WindowProxy::toggle()
if (vistracker) {
vistracker->cycle_visibility ();
} else if (fully_visible ()) {
_window->hide ();
} else {
_window->present ();
}