summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-18 14:58:49 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-18 14:59:08 +0200
commitb382c7e3c6645c977cd9a7bf28b639a349d5bbde (patch)
tree18813fb8f00f4814749957bd37af31de3b2c1cc3 /plugingui/window.cc
parent37cb6cefcab6be0a1337e0a346d6e259f8dbbb5f (diff)
Make visible() call into nativewindow and make Win32 windows invisible on creation.
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc
index a38eeea..3840643 100644
--- a/plugingui/window.cc
+++ b/plugingui/window.cc
@@ -51,10 +51,6 @@ Window::Window(void* native_window)
: Widget(nullptr)
, wpixbuf(1, 1)
{
- // Defaults to true for widgets but the window should be considered invisble
- // until show is called.
- _visible = false;
-
// Make sure we have a valid size when initialising the NativeWindow
_width = wpixbuf.width;
_height = wpixbuf.height;
@@ -122,6 +118,11 @@ void Window::hide()
Widget::hide();
}
+bool Window::visible() const
+{
+ return native->visible();
+}
+
Window* Window::window()
{
return this;