diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-16 19:28:54 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-16 20:13:36 +0200 |
commit | 1b3d6c39ae120aa8a80a5330977d23906f87c621 (patch) | |
tree | 84cce20bc4a7f39a075d94c9303d9486056d2ecf | |
parent | e8aca98c9fba8ce856b867b513f2d5527b93484d (diff) |
Fix default visibility of Window to reflect the actual NativeWindow visibility state.
-rw-r--r-- | plugingui/window.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc index 2d5f282..a38eeea 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -51,6 +51,10 @@ 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; |