diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2014-07-03 14:06:21 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2014-07-03 14:07:32 -0400 |
commit | 157c1a090c7fe3e40695bb1167fb3df3b751ec4b (patch) | |
tree | a5489d57f91731098676ca71eb04641dbf927c56 | |
parent | baa2fba8e204b7595498fb0d1023dd56b80fbec5 (diff) | |
download | cogl-157c1a090c7fe3e40695bb1167fb3df3b751ec4b.tar.gz |
examples/cogl-x11-tfp: Fix compilation
Fix a couple of minor compilation problems from a bad rebase - a
missing label and a missing variable.
-rw-r--r-- | examples/cogl-x11-tfp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/cogl-x11-tfp.c b/examples/cogl-x11-tfp.c index 6a24b275..52580e9f 100644 --- a/examples/cogl-x11-tfp.c +++ b/examples/cogl-x11-tfp.c @@ -188,6 +188,8 @@ main (int argc, char **argv) while (TRUE) { + XEvent xev; + XWindowEvent (xdpy, xwin, StructureNotifyMask, &xev); if (xev.xany.type == MapNotify) @@ -226,7 +228,7 @@ main (int argc, char **argv) case ClientMessage: if (event.xclient.message_type == atom_wm_protocols && event.xclient.data.l[0] == atom_wm_delete_window) - goto out; + return 0; break; } cogl_xlib_renderer_handle_event (renderer, &event); |