forked from enlightenment/efl
free the event and don't use deprecated XCBSync function
SVN revision: 25760
This commit is contained in:
parent
691df94e56
commit
369e8a9975
|
@ -295,13 +295,8 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
if (ev->detail.id == 3)
|
if (ev->detail.id == 3)
|
||||||
{
|
{
|
||||||
setdown();
|
|
||||||
evas_free(evas);
|
|
||||||
free(e);
|
free(e);
|
||||||
XCBDisconnect(conn);
|
goto exit;
|
||||||
evas_shutdown();
|
|
||||||
exit(0);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
if (!pause_me)
|
if (!pause_me)
|
||||||
|
@ -361,6 +356,7 @@ main(int argc, char **argv)
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit:
|
||||||
setdown();
|
setdown();
|
||||||
evas_free(evas);
|
evas_free(evas);
|
||||||
XCBDisconnect(conn);
|
XCBDisconnect(conn);
|
||||||
|
|
|
@ -102,6 +102,7 @@ main(int argc, char **argv)
|
||||||
XCBConnection *conn;
|
XCBConnection *conn;
|
||||||
const XCBQueryExtensionRep *rep_shm;
|
const XCBQueryExtensionRep *rep_shm;
|
||||||
const XCBQueryExtensionRep *rep_xrender;
|
const XCBQueryExtensionRep *rep_xrender;
|
||||||
|
XCBGetInputFocusRep *reply;
|
||||||
XCBSCREEN *screen;
|
XCBSCREEN *screen;
|
||||||
XCBDRAWABLE win;
|
XCBDRAWABLE win;
|
||||||
XCBGenericEvent *e;
|
XCBGenericEvent *e;
|
||||||
|
@ -154,7 +155,11 @@ main(int argc, char **argv)
|
||||||
XSetWMNormalHints(disp, win, &szhints);
|
XSetWMNormalHints(disp, win, &szhints);
|
||||||
#endif
|
#endif
|
||||||
XCBMapWindow (conn, win.window);
|
XCBMapWindow (conn, win.window);
|
||||||
XCBSync(conn, 0);
|
/* we sync */
|
||||||
|
reply = XCBGetInputFocusReply(conn,
|
||||||
|
XCBGetInputFocusUnchecked(conn),
|
||||||
|
NULL);
|
||||||
|
free(reply);
|
||||||
|
|
||||||
/* test evas_free.... :) */
|
/* test evas_free.... :) */
|
||||||
evas_init();
|
evas_init();
|
||||||
|
@ -187,7 +192,10 @@ main(int argc, char **argv)
|
||||||
XCBButtonPressEvent *ev = (XCBButtonPressEvent *)e;
|
XCBButtonPressEvent *ev = (XCBButtonPressEvent *)e;
|
||||||
|
|
||||||
if (ev->detail.id == 3)
|
if (ev->detail.id == 3)
|
||||||
goto exit;
|
{
|
||||||
|
free(e);
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
if (!pause_me)
|
if (!pause_me)
|
||||||
pause_me = 1;
|
pause_me = 1;
|
||||||
|
|
Loading…
Reference in New Issue