aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 6375609..32501da 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -494,6 +494,14 @@ puglGrabFocus(PuglView* view)
}
PuglStatus
+puglWaitForEvent(PuglView* view)
+{
+ XEvent xevent;
+ XPeekEvent(view->impl->display, &xevent);
+ return PUGL_SUCCESS;
+}
+
+PuglStatus
puglProcessEvents(PuglView* view)
{
XEvent xevent;
@@ -544,6 +552,7 @@ puglProcessEvents(PuglView* view)
if (view->ctx_type == PUGL_CAIRO) {
cairo_xlib_surface_set_size(
view->impl->surface, view->width, view->height);
+ view->redisplay = true;
}
#endif
}