[client] app: ignore resize events that don't change the size

This commit is contained in:
Geoffrey McRae 2021-01-19 20:15:12 +11:00
parent 2f11024db8
commit b87004c597

View file

@ -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;