]> Pileus Git - ~andy/gtk/commit
win32: Call GetQueueStatus instead of PeekMessage PM_NOREMOVE
authorDieter Verfaillie <dieterv@optionexplicit.be>
Fri, 21 Oct 2011 09:38:31 +0000 (11:38 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:40:55 +0000 (17:40 +0100)
commit1df95b4c0aac1194e0b84ab31fb3bafdadd7aaf8
tree3a965008c16a2adc397ce6c296462d1b47a71b93
parentd66ad8c39dc37b5c7b014de5c3b8ae96aae87c49
win32: Call GetQueueStatus instead of PeekMessage PM_NOREMOVE

Calling PeekMessage can cause reentrant calls into the window procedure
for sent (as opposed to posted) messages, so its not safe to call
when we're not expecting reentrancy. Instead we call GetQueueStatus
when we're just looking for availible messages.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=552041
gdk/win32/gdkevents-win32.c