diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 549132dad52e..2c34b5db715e 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -7,6 +7,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + +#include <deque> #include <stack> #include <string.h> #include <osl/process.h> @@ -402,25 +405,24 @@ bool GtkInstance::AnyInput( VclInputFlags nType ) return true; bool bRet = false; - std::stack<GdkEvent*> aEvents; + std::deque<GdkEvent*> aEvents; GdkEvent *pEvent = nullptr; while ((pEvent = gdk_event_get())) { - aEvents.push(pEvent); + aEvents.push_back(pEvent); VclInputFlags nEventType = categorizeEvent(pEvent); if ( (nEventType & nType) || ( nEventType == VclInputFlags::NONE && (nType & VclInputFlags::OTHER) ) ) { bRet = true; - break; } } while (!aEvents.empty()) { - pEvent = aEvents.top(); + pEvent = aEvents.front(); gdk_event_put(pEvent); gdk_event_free(pEvent); - aEvents.pop(); + aEvents.pop_front(); } return bRet; } |