mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 09:08:58 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user