mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-17 04:42:01 +00:00
[client] fix reversed event timestamp logic
This commit is contained in:
@@ -102,7 +102,7 @@ void lgMessage_process(void)
|
|||||||
case LG_MSG_WINDOWSIZE:
|
case LG_MSG_WINDOWSIZE:
|
||||||
{
|
{
|
||||||
// retain the last/latest windowsize event
|
// retain the last/latest windowsize event
|
||||||
if (!windowSize || windowSize->timestamp > event->timestamp)
|
if (!windowSize || event->timestamp > windowSize->timestamp)
|
||||||
{
|
{
|
||||||
free(windowSize);
|
free(windowSize);
|
||||||
windowSize = event;
|
windowSize = event;
|
||||||
@@ -135,14 +135,14 @@ void lgMessage_process(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (event->msg.windowSize.width != this.lastWindowSize.width ||
|
if (windowSize->msg.windowSize.width != this.lastWindowSize.width ||
|
||||||
event->msg.windowSize.height != this.lastWindowSize.height)
|
windowSize->msg.windowSize.height != this.lastWindowSize.height)
|
||||||
{
|
{
|
||||||
this.lastWindowSize.width = event->msg.windowSize.width;
|
this.lastWindowSize.width = windowSize->msg.windowSize.width;
|
||||||
this.lastWindowSize.height = event->msg.windowSize.height;
|
this.lastWindowSize.height = windowSize->msg.windowSize.height;
|
||||||
core_onWindowSizeChanged(
|
core_onWindowSizeChanged(
|
||||||
event->msg.windowSize.width,
|
windowSize->msg.windowSize.width,
|
||||||
event->msg.windowSize.height);
|
windowSize->msg.windowSize.height);
|
||||||
}
|
}
|
||||||
free(windowSize);
|
free(windowSize);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user