aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-21 07:36:16 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-21 07:36:16 +0100
commit242e4d0ea14a713e38b99e4206bb0f05c05f92df (patch)
tree161ef892cf7ca9402f40805b312033e980e7227c /src/window
parente1431633f7eb33041330b8bf01a5954e747c60a1 (diff)
Fix bug where window resize event is updated every frame
Diffstat (limited to 'src/window')
-rw-r--r--src/window/window.c2
1 files changed, 1 insertions, 1 deletions
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;