From b87004c597f5737116922f796cc4b811a4a7e42c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 19 Jan 2021 20:15:12 +1100 Subject: [PATCH] [client] app: ignore resize events that don't change the size --- client/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index a2d3595c..8a110136 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1453,6 +1453,10 @@ void app_handleResizeEvent(int w, int h) &g_state.border.w ); + /* don't do anything else if the window dimensions have not changed */ + if (g_state.windowW == w && g_state.windowH == h) + return; + g_state.windowW = w; g_state.windowH = h; g_state.windowCX = w / 2;