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-17 18:01:03 -0400 |
commit | 728362c77b0ff804c196790dd93da84da2555b75 (patch) | |
tree | 154ab7c50700919da3f5209ff6c6f3bb7511f57d | |
parent | d5443d2903fdd33d91243ca1f1ba45cffd24fda8 (diff) | |
download | cogl-728362c77b0ff804c196790dd93da84da2555b75.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 019648b1..c63fa2ea 100644 --- a/examples/cogl-x11-tfp.c +++ b/examples/cogl-x11-tfp.c @@ -180,6 +180,8 @@ main (int argc, char **argv) while (TRUE) { + XEvent xev; + XWindowEvent (xdpy, xwin, StructureNotifyMask, &xev); if (xev.xany.type == MapNotify) @@ -218,7 +220,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); |