aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-07 06:33:07 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-07 06:33:07 +0100
commit29627a93c68b9f3927ee9d1097ed3266777b6a0b (patch)
tree9f1b20f8babc57dde0c59324756ea5ed5a3f31a0 /src/window
parent0a22a501932e4c462fc904bcf5da541a226e4308 (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.cpp4
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