summaryrefslogtreecommitdiff
path: root/hw/xwin/winwakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwin/winwakeup.c')
-rw-r--r--hw/xwin/winwakeup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xwin/winwakeup.c b/hw/xwin/winwakeup.c
index b512b29e8..031a510f9 100644
--- a/hw/xwin/winwakeup.c
+++ b/hw/xwin/winwakeup.c
@@ -45,8 +45,8 @@ winWakeupHandler (int nScreen,
{
MSG msg;
- /* Process all messages on our queue */
- while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
+ /* Process one message from our queue */
+ if (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
{
if ((g_hDlgDepthChange == 0
|| !IsDialogMessage (g_hDlgDepthChange, &msg))