mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Renamed window close request variable.
This commit is contained in:
parent
f06489d6cb
commit
867e747add
@ -56,7 +56,7 @@
|
||||
|
||||
- (BOOL)windowShouldClose:(id)sender
|
||||
{
|
||||
window->closed = GL_TRUE;
|
||||
window->closeRequested = GL_TRUE;
|
||||
|
||||
return NO;
|
||||
}
|
||||
@ -113,7 +113,7 @@
|
||||
_GLFWwindow* window;
|
||||
|
||||
for (window = _glfwLibrary.windowListHead; window; window = window->next)
|
||||
window->closed = GL_TRUE;
|
||||
window->closeRequested = GL_TRUE;
|
||||
|
||||
return NSTerminateCancel;
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ typedef struct _GLFWwindow
|
||||
|
||||
// Window settings and state
|
||||
GLboolean iconified; // GL_TRUE if this window is iconified
|
||||
GLboolean closed; // GL_TRUE if this window should be closed
|
||||
GLboolean closeRequested; // GL_TRUE if this window should be closed
|
||||
int width, height;
|
||||
int positionX, positionY;
|
||||
int mode; // GLFW_WINDOW or GLFW_FULLSCREEN
|
||||
|
@ -731,7 +731,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||
case WM_CLOSE:
|
||||
{
|
||||
// Flag this window for closing (handled in glfwPollEvents)
|
||||
window->closed = GL_TRUE;
|
||||
window->closeRequested = GL_TRUE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1675,7 +1675,7 @@ void _glfwPlatformPollEvents(void)
|
||||
window = _glfwLibrary.windowListHead;
|
||||
while (window)
|
||||
{
|
||||
window->closed = GL_TRUE;
|
||||
window->closeRequested = GL_TRUE;
|
||||
window = window->next;
|
||||
}
|
||||
|
||||
|
@ -55,10 +55,10 @@ static void closeFlaggedWindows(void)
|
||||
|
||||
for (window = _glfwLibrary.windowListHead; window; )
|
||||
{
|
||||
if (window->closed && window->windowCloseCallback)
|
||||
window->closed = window->windowCloseCallback(window);
|
||||
if (window->closeRequested && window->windowCloseCallback)
|
||||
window->closeRequested = window->windowCloseCallback(window);
|
||||
|
||||
if (window->closed)
|
||||
if (window->closeRequested)
|
||||
{
|
||||
_GLFWwindow* next = window->next;
|
||||
glfwCloseWindow(window);
|
||||
|
@ -1242,7 +1242,7 @@ static void processSingleEvent(void)
|
||||
// The window manager was asked to close the window, for example by
|
||||
// the user pressing a 'close' window decoration button
|
||||
|
||||
window->closed = GL_TRUE;
|
||||
window->closeRequested = GL_TRUE;
|
||||
}
|
||||
else if (window->X11.wmPing != None &&
|
||||
(Atom) event.xclient.data.l[ 0 ] == window->X11.wmPing)
|
||||
|
Loading…
Reference in New Issue
Block a user