Commit 716490f0 authored by Andrew Innes's avatar Andrew Innes
Browse files

(drain_message_queue): New function.

parent b37ac782
......@@ -239,6 +239,19 @@ prepend_msg (W32Msg *lpmsg)
return (TRUE);
}
/* Process all messages in the current thread's queue. */
void
drain_message_queue ()
{
MSG msg;
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}
}
/*
* XParseGeometry parses strings of the form
* "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment