diff options
author | David Robillard <d@drobilla.net> | 2015-09-13 15:37:00 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-09-13 15:37:00 -0400 |
commit | 77d1640d8a704a124b4ad0f953687f6bc65893b8 (patch) | |
tree | 83212becf25eec088be9b8c221123bbacf247f56 /pugl/pugl_x11.c | |
parent | 6e26c05d999af1ff47ce80d95dcb03f2c63ab380 (diff) | |
download | pugl-77d1640d8a704a124b4ad0f953687f6bc65893b8.tar.gz pugl-77d1640d8a704a124b4ad0f953687f6bc65893b8.tar.bz2 pugl-77d1640d8a704a124b4ad0f953687f6bc65893b8.zip |
Avoid redundant expose events on resize.
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 43a1b26..8167ece 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -545,11 +545,14 @@ puglProcessEvents(PuglView* view) cairo_xlib_surface_set_size(view->impl->surface, event.configure.width, event.configure.height); + view->redisplay = true; } #endif // Dispatch event to application - puglDispatchEvent(view, &event); + if (!(view->redisplay && event.type == PUGL_EXPOSE)) { + puglDispatchEvent(view, &event); + } } if (view->redisplay) { |