Win32: Filter out duplicate size events

This mirrors the filtering done on X11 and Cocoa.  Possibly this should
be done by shared code instead.

Fixes #1610.

(cherry picked from commit 0bccc3852b)
This commit is contained in:
Camilla Löwy
2020-10-07 23:35:17 +02:00
parent 7dee4e05f9
commit 395ab660d5
3 changed files with 17 additions and 2 deletions
+3
View File
@@ -321,6 +321,9 @@ typedef struct _GLFWwindowWin32
GLFWbool transparent;
GLFWbool scaleToMonitor;
// Cached size used to filter out duplicate events
int width, height;
// The last received cursor position, regardless of source
int lastCursorPosX, lastCursorPosY;
// The last recevied high surrogate when decoding pairs of UTF-16 messages