# PollEvents, WaitEvents and CloseWindowCallbac

**URL:** <https://discourse.glfw.org/t/pollevents-waitevents-and-closewindowcallbac/467>\
**Category:** support\
**Created:** [June 25, 2008, 12:17pm UTC](https://discourse.glfw.org/t/pollevents-waitevents-and-closewindowcallbac/467 "2008-06-25T12:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 25, 2008, 12:17pm UTC](https://discourse.glfw.org/t/pollevents-waitevents-and-closewindowcallbac/467/1 "2008-06-25T12:17:20Z")

</div>

**nobody** wrote on [Wednesday, June 25, 2008](https://sourceforge.net/p/glfw/discussion/247562/thread/8f4e6882/#ca90):

I write a wrapper for VASmalltalk around GLFW. I used several callbacks - which work - and especially I looked for SetWindowClose callback.

Then - for testing purposes - I call glfwPollEvents in a polling method, but never received the WindowClose callback - other callbacks were executed like WindowSize or WindowRefresh.

Then I changed my polling method to use glfwWaitEvents and then I got the WindowClose event.

But I noticed, that I had to double-click the close widget on my host windows (MS Vista) - which does not seems to conform to the normal GUI-behaviour ?

Marten Feldtmann
