]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/android/display_platform.h
Avoid using std::list
[libs/gui.git] / source / graphics / android / display_platform.h
index e07cb2ebeacaa76a7962a35bc5a7d7db6ff31efc..6795f38239165b1a04e247d17fda585a9a763130 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 
+#include <deque>
 #include <android/input.h>
 #include <android/native_window.h>
 #include <sigc++/trackable.h>
@@ -15,7 +16,7 @@ typedef void *DisplayHandle;
 struct PlatformDisplayPrivate: public sigc::trackable
 {
        AInputQueue *input_queue = nullptr;
-       std::list<Window::Event> events;
+       std::deque<Window::Event> events;
        Mutex event_mutex;
        WindowHandle native_window = nullptr;
        Mutex window_mutex;