From 48c439c06576092e1b3de89146c7f201a3f4453b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Apr 2012 05:22:50 +0000 Subject: Support window closing on Windows. --- pugl/pugl_x11.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pugl/pugl_x11.c') 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); -- cgit v1.2.3