mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:21:57 +00:00
[client] app: ignore resize events that don't change the size
This commit is contained in:
parent
2f11024db8
commit
b87004c597
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue