EAPI int
ecore_x_shutdown(void)
{
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
return _ecore_xcb_shutdown(EINA_TRUE);
}
EAPI int
ecore_x_disconnect(void)
{
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
return _ecore_xcb_shutdown(EINA_FALSE);
}
EAPI void
ecore_x_flush(void)
{
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
+// LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_flush(_ecore_xcb_conn);
}
EAPI Ecore_X_Time
ecore_x_current_time_get(void)
{
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
return _ecore_xcb_events_last_time_get();
}
// FIXME: Use unchecked version after development is ironed out
cookie =
xcb_send_event_checked(_ecore_xcb_conn, 0, win, mask, (const char *)&ev);
+
+ ecore_x_flush();
+
err = xcb_request_check(_ecore_xcb_conn, cookie);
if (err)
{
cookie =
xcb_send_event_checked(_ecore_xcb_conn, 0, win,
XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
+
+ ecore_x_flush();
+
err = xcb_request_check(_ecore_xcb_conn, cookie);
if (err)
{
vcookie =
xcb_send_event_checked(_ecore_xcb_conn, 1, win,
XCB_EVENT_MASK_BUTTON_PRESS, (const char *)&ev);
+
+ ecore_x_flush();
+
err = xcb_request_check(_ecore_xcb_conn, vcookie);
if (err)
{
vcookie =
xcb_send_event_checked(_ecore_xcb_conn, 1, win,
XCB_EVENT_MASK_BUTTON_RELEASE, (const char *)&ev);
+
+ ecore_x_flush();
+
err = xcb_request_check(_ecore_xcb_conn, vcookie);
if (err)
{
vcookie =
xcb_send_event_checked(_ecore_xcb_conn, 1, win,
XCB_EVENT_MASK_POINTER_MOTION, (const char *)&ev);
+
+ ecore_x_flush();
+
err = xcb_request_check(_ecore_xcb_conn, vcookie);
if (err)
{
xcb_query_pointer_cookie_t cookie;
xcb_query_pointer_reply_t *reply;
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
+// LOGFN(__FILE__, __LINE__, __FUNCTION__);
// if (!win) win = ((xcb_screen_t *)_ecore_xcb_screen)->root;
xcb_void_cookie_t cookie;
xcb_generic_error_t *err;
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
// FIXME: Use unchecked version after development is ironed out
cookie = xcb_bell_checked(_ecore_xcb_conn, percent);
err = xcb_request_check(_ecore_xcb_conn, cookie);
* Return the screen DPI
*
* This is a simplistic call to get DPI. It does not account for differing
- * DPI in the x amd y axes nor does it accoutn for multihead or xinerama and
+ * DPI in the x amd y axes nor does it account for multihead or xinerama and
* xrander where different parts of the screen may have differen DPI etc.
*
* @return the general screen DPI (dots/pixels per inch).
{
char *gl = NULL;
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
/* if we have the 'dont use xlib' env var, then we are not using
* XLib and thus cannot return a real XDisplay.
*
xcb_generic_event_t *ev = NULL;
xcb_generic_event_t *ev_mouse = NULL;
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
conn = (xcb_connection_t *)data;
if (_ecore_xcb_event_buffered)
xcb_connection_t *conn;
xcb_generic_event_t *ev = NULL;
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
conn = (xcb_connection_t *)data;
ev = xcb_poll_for_event(conn);
if (ev)