diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-20 22:08:03 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-20 22:08:03 +0100 |
| commit | 2b1f81ba329b17a18cdd75604625076ee614f5ef (patch) | |
| tree | eb5501d6b6261e6e7745595a288b3a19fcb53aba /src/window.cpp | |
| parent | 293ba47eeb804e9cb0f392c0411fcce56c37bfc9 (diff) | |
Update fov on window resize
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index c273f43..77e8f1c 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -81,6 +81,7 @@ void window::poll_events() { auto client_message_event = (xcb_client_message_event_t*)event; if (client_message_event->data.data32[0] == win_delete_atom) { events.push_back({ .type = EVENT_TYPES::QUIT }); + isOpen = false; } } default: { @@ -159,6 +160,7 @@ LRESULT window::message_handler(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lpar case WM_CLOSE: case WM_DESTROY: case WM_QUIT: { + events.push_back({ .type = EVENT_TYPES::QUIT }); isOpen = false; return 0; } |
