Cocoa: Filter out duplicate size events

Fixes #1085.
This commit is contained in:
Camilla Löwy
2017-11-16 11:34:42 +01:00
parent d630684654
commit 1fe319d234
3 changed files with 30 additions and 3 deletions
+4
View File
@@ -88,6 +88,10 @@ typedef struct _GLFWwindowNS
GLFWbool maximized;
// Cached window and framebuffer sizes used to filter out duplicate events
int width, height;
int fbWidth, fbHeight;
// The total sum of the distances the cursor has been warped
// since the last cursor motion event was processed
// This is kept to counteract Cocoa doing the same internally