From 97d43f17b629ab240c439a782bf66e44c4619f76 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 16 Jul 2026 19:43:02 +1000 Subject: [PATCH] [client] fix reversed event timestamp logic --- client/src/message.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/message.c b/client/src/message.c index 54c5559a..44bb6d7f 100644 --- a/client/src/message.c +++ b/client/src/message.c @@ -102,7 +102,7 @@ void lgMessage_process(void) case LG_MSG_WINDOWSIZE: { // retain the last/latest windowsize event - if (!windowSize || windowSize->timestamp > event->timestamp) + if (!windowSize || event->timestamp > windowSize->timestamp) { free(windowSize); windowSize = event; @@ -135,14 +135,14 @@ void lgMessage_process(void) } else { - if (event->msg.windowSize.width != this.lastWindowSize.width || - event->msg.windowSize.height != this.lastWindowSize.height) + if (windowSize->msg.windowSize.width != this.lastWindowSize.width || + windowSize->msg.windowSize.height != this.lastWindowSize.height) { - this.lastWindowSize.width = event->msg.windowSize.width; - this.lastWindowSize.height = event->msg.windowSize.height; + this.lastWindowSize.width = windowSize->msg.windowSize.width; + this.lastWindowSize.height = windowSize->msg.windowSize.height; core_onWindowSizeChanged( - event->msg.windowSize.width, - event->msg.windowSize.height); + windowSize->msg.windowSize.width, + windowSize->msg.windowSize.height); } free(windowSize); }