diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-07 06:33:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-07 06:33:07 +0100 |
commit | 29627a93c68b9f3927ee9d1097ed3266777b6a0b (patch) | |
tree | 9f1b20f8babc57dde0c59324756ea5ed5a3f31a0 /src/window | |
parent | 0a22a501932e4c462fc904bcf5da541a226e4308 (diff) |
Fix exit being called when closing window, respond to wm ping, add is_open function to window
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/Window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 7f1fe38..5dbbe5a 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -71,7 +71,9 @@ namespace mgl { // TODO: Implement bool Window::is_open() const { - return true; + if(!window.window) + return false; + return mgl_window_is_open(&window); } // TODO: Implement |