From 6e2b4f4bdd36844721f50b71d0cbc159363ba25f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 21 Apr 2017 23:44:43 +0200 Subject: Distinguish between widget and window wrt. visible(). --- plugingui/window.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugingui/window.cc') diff --git a/plugingui/window.cc b/plugingui/window.cc index 3840643..099cb91 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -71,6 +71,8 @@ Window::Window(void* native_window) #endif // !UI_PUGL eventhandler = new EventHandler(*native, *this); + + setVisible(true); // The root widget is always visible. } Window::~Window() @@ -118,11 +120,6 @@ void Window::hide() Widget::hide(); } -bool Window::visible() const -{ - return native->visible(); -} - Window* Window::window() { return this; -- cgit v1.2.3