From 242e4d0ea14a713e38b99e4206bb0f05c05f92df Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 21 Nov 2021 07:36:16 +0100 Subject: Fix bug where window resize event is updated every frame --- src/window/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index 8ed68e7..13bb4ba 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -581,7 +581,7 @@ static void mgl_window_on_receive_event(mgl_window *self, XEvent *xev, mgl_event } case ConfigureNotify: { while(XCheckTypedWindowEvent(context->connection, self->window, ConfigureNotify, xev)) {} - if(xev->xconfigure.width != self->size.x || xev->xconfigure.height != self->size.x) { + if(xev->xconfigure.width != self->size.x || xev->xconfigure.height != self->size.y) { mgl_window_on_resize(self, xev->xconfigure.width, xev->xconfigure.height); event->type = MGL_EVENT_RESIZED; -- cgit v1.2.3