diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-12 10:20:17 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-13 16:49:02 +0200 |
commit | 3bf6c97029d26ddf20007c47ca6b68e5cc52d846 (patch) | |
tree | 1185ae5aff1c42f87357590727bf64c2df9af439 /vcl/inc/win/saltimer.h | |
parent | fb4e7be5d4eac6d7c429c215e72de45ea28d86cd (diff) |
tdf#112975 WIN correctly handle VclInputFlags::OTHER
On Windows we can just check the message queue for existing
messages. But VclInputFlags::OTHER is used to check for any
messages, which can't be explicitly checked.
In the case of checking for VclInputFlags::OTHER while
excluding an other message type, we have to make multiple
PeekMessage calls and exclude all non-checked message ids.
Change-Id: I1cedd4b76444769842c74228fc547f0d924f8b60
Reviewed-on: https://gerrit.libreoffice.org/43337
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/win/saltimer.h')
-rw-r--r-- | vcl/inc/win/saltimer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/inc/win/saltimer.h b/vcl/inc/win/saltimer.h index 37976bbfaf8b..68973e1cadc3 100644 --- a/vcl/inc/win/saltimer.h +++ b/vcl/inc/win/saltimer.h @@ -47,6 +47,7 @@ public: virtual void Stop() override; inline bool IsDirectTimeout() const; + inline bool HasTimerElapsed() const; }; inline bool WinSalTimer::IsDirectTimeout() const @@ -54,6 +55,11 @@ inline bool WinSalTimer::IsDirectTimeout() const return m_bDirectTimeout; } +inline bool WinSalTimer::HasTimerElapsed() const +{ + return m_bDirectTimeout || ExistsValidEvent(); +} + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |