diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32xfns.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/w32xfns.c b/src/w32xfns.c index 7c61b241520..617eec7841b 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c | |||
| @@ -239,6 +239,19 @@ prepend_msg (W32Msg *lpmsg) | |||
| 239 | return (TRUE); | 239 | return (TRUE); |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | /* Process all messages in the current thread's queue. */ | ||
| 243 | void | ||
| 244 | drain_message_queue () | ||
| 245 | { | ||
| 246 | MSG msg; | ||
| 247 | while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) | ||
| 248 | { | ||
| 249 | TranslateMessage (&msg); | ||
| 250 | DispatchMessage (&msg); | ||
| 251 | } | ||
| 252 | } | ||
| 253 | |||
| 254 | |||
| 242 | /* | 255 | /* |
| 243 | * XParseGeometry parses strings of the form | 256 | * XParseGeometry parses strings of the form |
| 244 | * "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where | 257 | * "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where |