examples/cogl-x11-tfp: Fix compilation

Fix a couple of minor compilation problems from a bad rebase - a
missing label and a missing variable.
This commit is contained in:
Owen W. Taylor 2014-07-03 14:06:21 -04:00
parent baa2fba8e2
commit 157c1a090c

View File

@ -188,6 +188,8 @@ main (int argc, char **argv)
while (TRUE) while (TRUE)
{ {
XEvent xev;
XWindowEvent (xdpy, xwin, StructureNotifyMask, &xev); XWindowEvent (xdpy, xwin, StructureNotifyMask, &xev);
if (xev.xany.type == MapNotify) if (xev.xany.type == MapNotify)
@ -226,7 +228,7 @@ main (int argc, char **argv)
case ClientMessage: case ClientMessage:
if (event.xclient.message_type == atom_wm_protocols && if (event.xclient.message_type == atom_wm_protocols &&
event.xclient.data.l[0] == atom_wm_delete_window) event.xclient.data.l[0] == atom_wm_delete_window)
goto out; return 0;
break; break;
} }
cogl_xlib_renderer_handle_event (renderer, &event); cogl_xlib_renderer_handle_event (renderer, &event);