diff --git a/src/ui/window.cpp b/src/ui/window.cpp index b063fe9bc..ab0a92116 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -714,6 +714,13 @@ void Window::onSetText() initTheme(); } +void Window::onVisible(bool visible) +{ + if (get_multiple_displays() && m_display) { + display()->nativeWindow()->setVisible(visible); + } +} + void Window::onBuildTitleLabel() { if (text().empty()) { diff --git a/src/ui/window.h b/src/ui/window.h index e6655f713..711f4603d 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -104,6 +104,7 @@ namespace ui { virtual void onBroadcastMouseMessage(const gfx::Point& screenPos, WidgetsList& targets) override; virtual void onSetText() override; + virtual void onVisible(bool visible) override; // New events virtual void onOpen(Event& ev);