diff options
-rw-r--r-- | src/window/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window/window.c b/src/window/window.c index 8d63650..5ae4d3f 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -814,6 +814,8 @@ bool mgl_window_poll_event(mgl_window *self, mgl_event *event) { XNextEvent(display, &xev); if(xev.xany.window == self->window || event->type == ClientMessage) mgl_window_on_receive_event(self, &xev, event, context); + else + event->type = MGL_EVENT_UNKNOWN; return true; } else { return false; |