diff options
author | Andrew Belt <andrewpbelt@gmail.com> | 2023-06-25 09:03:09 -0400 |
---|---|---|
committer | Andrew Belt <andrewpbelt@gmail.com> | 2023-06-25 09:03:09 -0400 |
commit | 9ee126d76bb52e96ef9a9c5fa5241d5bf63cc2e5 (patch) | |
tree | b853254052a4f070505e39f47130ca1bf9ff0ea7 | |
parent | 613f926c354f7d03a21cdd35392fe4f584a3ff86 (diff) |
Set vg in ContextCreateEvent and ContextDestroyEvent when constructing and destructing Window.
-rw-r--r-- | src/window/Window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 164db77b..fd8850bf 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -358,6 +358,7 @@ Window::Window() { if (APP->scene) { widget::Widget::ContextCreateEvent e; + e.vg = vg; APP->scene->onContextCreate(e); } } @@ -366,6 +367,7 @@ Window::Window() { Window::~Window() { if (APP->scene) { widget::Widget::ContextDestroyEvent e; + e.vg = vg; APP->scene->onContextDestroy(e); } |