diff options
author | David Robillard <d@drobilla.net> | 2012-04-29 05:22:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-29 05:22:50 +0000 |
commit | 48c439c06576092e1b3de89146c7f201a3f4453b (patch) | |
tree | 761b9ae14fadd9c95c62b45a4a391f5a5d8b8c37 /pugl/pugl_x11.c | |
parent | e756cdca27d1ce11ae4839ca571e43834a971670 (diff) |
Support window closing on Windows.
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 14 |
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); |