mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Fix window refresh events emission on OS X
This commit is contained in:
parent
67eadf1e97
commit
4b4cb9ce66
@ -84,6 +84,8 @@ GLFW bundles a number of dependencies in the `deps/` directory.
|
|||||||
- [Cocoa] Bugfix: Creating or showing a window would make its context current
|
- [Cocoa] Bugfix: Creating or showing a window would make its context current
|
||||||
- [Cocoa] Bugfix: Joysticks connected after `glfwInit` were not detected
|
- [Cocoa] Bugfix: Joysticks connected after `glfwInit` were not detected
|
||||||
- [Cocoa] Bugfix: Cursor creation failed unless a window had been created.
|
- [Cocoa] Bugfix: Cursor creation failed unless a window had been created.
|
||||||
|
- [Cocoa] Bugfix: Window refresh events were not generated by iconification or
|
||||||
|
restoration
|
||||||
- [X11] Bugfix: `glfwInit` would segfault on systems without RandR
|
- [X11] Bugfix: `glfwInit` would segfault on systems without RandR
|
||||||
- [X11] Bugfix: The response to `_NET_WM_PING` was sent to the wrong window
|
- [X11] Bugfix: The response to `_NET_WM_PING` was sent to the wrong window
|
||||||
- [X11] Bugfix: Character input via XIM did not work in many cases
|
- [X11] Bugfix: Character input via XIM did not work in many cases
|
||||||
|
@ -214,7 +214,6 @@ static int translateKey(unsigned int key)
|
|||||||
|
|
||||||
_glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
|
_glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
|
||||||
_glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height);
|
_glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height);
|
||||||
_glfwInputWindowDamage(window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowDidMove:(NSNotification *)notification
|
- (void)windowDidMove:(NSNotification *)notification
|
||||||
@ -476,6 +475,10 @@ static int translateKey(unsigned int key)
|
|||||||
const NSRect fbRect = convertRectToBacking(window, contentRect);
|
const NSRect fbRect = convertRectToBacking(window, contentRect);
|
||||||
|
|
||||||
_glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
|
_glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)drawRect:(NSRect)rect
|
||||||
|
{
|
||||||
_glfwInputWindowDamage(window);
|
_glfwInputWindowDamage(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user