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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 3634c68..d8685b2 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -214,13 +214,6 @@ puglProcessEvents(PuglWindow* win)
while (XPending(win->impl->display) > 0) {
XNextEvent(win->impl->display, &event);
switch (event.type) {
- case Expose:
- if (event.xexpose.count != 0) {
- break;
- }
- puglDisplay(win);
- win->redisplay = false;
- break;
case MapNotify:
puglReshape(win, win->width, win->height);
break;
@@ -232,6 +225,13 @@ puglProcessEvents(PuglWindow* win)
event.xconfigure.height);
}
break;
+ case Expose:
+ if (event.xexpose.count != 0) {
+ break;
+ }
+ puglDisplay(win);
+ win->redisplay = false;
+ break;
case MotionNotify:
if (win->motionFunc) {
win->motionFunc(win, event.xmotion.x, event.xmotion.y);