summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_pugl.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-29 09:32:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-29 09:32:52 +0100
commitf59d2329c904e8cb5f6509050444bf2aee4b8f65 (patch)
treec1e2ed264664c030d96399016221072e9dabfc8e /plugingui/nativewindow_pugl.cc
parent77cd0b84e1cef83a4fa9b77663cea65b42355f7a (diff)
Move event skip optimization fromNativeWindowXYZ to EventHandler
Diffstat (limited to 'plugingui/nativewindow_pugl.cc')
-rw-r--r--plugingui/nativewindow_pugl.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugingui/nativewindow_pugl.cc b/plugingui/nativewindow_pugl.cc
index 0864c2b..b9dcd54 100644
--- a/plugingui/nativewindow_pugl.cc
+++ b/plugingui/nativewindow_pugl.cc
@@ -243,4 +243,14 @@ Event *NativeWindowPugl::getNextEvent()
return event;
}
+Event *NativeWindowPugl::peekNextEvent()
+{
+ Event *event = nullptr;
+
+ if(!eventq.empty()) {
+ event = eventq.front();
+ }
+ return event;
+}
+
} // GUI::