xcb_set_input_focus(_ecore_xcb_conn, XCB_INPUT_FOCUS_POINTER_ROOT,
((xcb_screen_t *)_ecore_xcb_screen)->root,
XCB_CURRENT_TIME);
+ ecore_x_flush();
}
EAPI void
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_allow_events(_ecore_xcb_conn, XCB_ALLOW_ASYNC_BOTH, XCB_CURRENT_TIME);
+ ecore_x_flush();
}
/**
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_kill_client(_ecore_xcb_conn, win);
+ ecore_x_flush();
}
/**
break;
}
xcb_composite_redirect_window(_ecore_xcb_conn, win, update);
+ ecore_x_flush();
#endif
}
break;
}
xcb_composite_redirect_subwindows(_ecore_xcb_conn, win, update);
+ ecore_x_flush();
#endif
}
break;
}
xcb_composite_unredirect_window(_ecore_xcb_conn, win, update);
+ ecore_x_flush();
#endif
}
break;
}
xcb_composite_unredirect_subwindows(_ecore_xcb_conn, win, update);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_COMPOSITE
pmap = xcb_generate_id(_ecore_xcb_conn);
xcb_composite_name_window_pixmap(_ecore_xcb_conn, win, pmap);
+ ecore_x_flush();
#endif
return pmap;
#ifdef ECORE_XCB_SHAPE
ecore_x_window_shape_input_rectangle_set(win, -1, -1, 1, 1);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
ecore_x_window_shape_input_rectangle_set(win, 0, 0, 65535, 65535);
+ ecore_x_flush();
#else
return;
win = 0;
free(reply);
ecore_x_composite_window_events_disable(win);
+ ecore_x_flush();
#endif
return win;
#ifdef ECORE_XCB_COMPOSITE
xcb_composite_release_overlay_window(_ecore_xcb_conn, win);
+ ecore_x_flush();
#endif
}
mask = XCB_CW_CURSOR;
list = cursor;
xcb_change_window_attributes(_ecore_xcb_conn, win, mask, &list);
+ ecore_x_flush();
}
return cursor;
#ifdef ECORE_XCB_CURSOR
return xcb_image_create_native(_ecore_xcb_conn, w, h,
XCB_IMAGE_FORMAT_Z_PIXMAP,
- 32, pixels, (w * h * sizeof(int)), // 32
+ 32, pixels, (w * h * sizeof(int)),
(uint8_t *)pixels);
#else
return xcb_image_create_native(_ecore_xcb_conn, w, h,
XCB_IMAGE_FORMAT_Z_PIXMAP,
- 1, pixels, (w * h * sizeof(int)), // 32
+ 1, pixels, (w * h * sizeof(int)),
(uint8_t *)pixels);
#endif
}
xcb_free_pixmap(_ecore_xcb_conn, pixmap);
xcb_free_pixmap(_ecore_xcb_conn, mask);
+ ecore_x_flush();
return cursor;
}
xcb_render_create_cursor(_ecore_xcb_conn, cursor, pict, hot_x, hot_y);
xcb_render_free_picture(_ecore_xcb_conn, pict);
+ ecore_x_flush();
return cursor;
}
#ifdef ECORE_XCB_DAMAGE
damage = xcb_generate_id(_ecore_xcb_conn);
xcb_damage_create(_ecore_xcb_conn, damage, drawable, level);
+ ecore_x_flush();
#endif
return damage;
#ifdef ECORE_XCB_DAMAGE
xcb_damage_destroy(_ecore_xcb_conn, damage);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_DAMAGE
xcb_damage_subtract(_ecore_xcb_conn, damage, repair, parts);
+ ecore_x_flush();
#endif
}
rect.height = h;
xcb_poly_fill_rectangle(_ecore_xcb_conn, draw, gc, 1,
(const xcb_rectangle_t *)&rect);
+ ecore_x_flush();
}
/**
gc = xcb_generate_id(_ecore_xcb_conn);
xcb_create_gc(_ecore_xcb_conn, gc, drawable, vmask, value_list);
+ ecore_x_flush();
return gc;
}
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_free_gc(_ecore_xcb_conn, gc);
+ ecore_x_flush();
}
EAPI void
list = foreground;
xcb_change_gc(_ecore_xcb_conn, gc, XCB_GC_FOREGROUND, &list);
+ ecore_x_flush();
}
EAPI void
list = background;
xcb_change_gc(_ecore_xcb_conn, gc, XCB_GC_BACKGROUND, &list);
+ ecore_x_flush();
}
pmap = xcb_generate_id(_ecore_xcb_conn);
xcb_create_pixmap(_ecore_xcb_conn, dep, pmap, win, w, h);
+ ecore_x_flush();
return pmap;
}
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_free_pixmap(_ecore_xcb_conn, pmap);
+ ecore_x_flush();
}
/**
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_copy_area(_ecore_xcb_conn, pmap, dest, gc, sx, sy, dx, dy, w, h);
+ ecore_x_flush();
}
/**
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ecore_x_client_message32_send(win, 27777, XCB_EVENT_MASK_NO_EVENT,
0x7162534, (0x10000000 + val), win, 0, 0);
+ ecore_x_flush();
}
/* public functions */
#ifdef ECORE_XCB_SYNC
xcb_sync_destroy_alarm(_ecore_xcb_conn, alarm);
+ ecore_x_flush();
return EINA_TRUE;
#endif
v.lo = by;
xcb_sync_change_counter(_ecore_xcb_conn, counter, v);
+ ecore_x_flush();
#endif
}
cond.event_threshold = v2;
xcb_sync_await(_ecore_xcb_conn, 1, &cond);
+ ecore_x_flush();
#endif
}
counter = xcb_generate_id(_ecore_xcb_conn);
xcb_sync_create_counter(_ecore_xcb_conn, counter, v);
+ ecore_x_flush();
return counter;
#endif
#ifdef ECORE_XCB_SYNC
xcb_sync_destroy_counter(_ecore_xcb_conn, counter);
+ ecore_x_flush();
#endif
}
v.lo = val;
xcb_sync_set_counter(_ecore_xcb_conn, counter, v);
+ ecore_x_flush();
#endif
}
v.lo = val_lo;
xcb_sync_set_counter(_ecore_xcb_conn, counter, v);
+ ecore_x_flush();
#endif
}
/* (const char *)&ev); */
xcb_destroy_window(_ecore_xcb_conn, win);
- ecore_x_sync();
+ ecore_x_flush();
}
}
xcb_configure_window(_ecore_xcb_conn, win, vmask,
(const uint32_t *)&vlist);
+ ecore_x_flush();
}
/**
xcb_configure_window(_ecore_xcb_conn, win, mask,
(const uint32_t *)&list);
+ ecore_x_flush();
}
/**
xcb_configure_window(_ecore_xcb_conn, win, mask,
(const uint32_t *)&list);
+ ecore_x_flush();
}
/**
xcb_configure_window(_ecore_xcb_conn, win, mask,
(const uint32_t *)&list);
+ ecore_x_flush();
}
/**
xcb_configure_window(_ecore_xcb_conn, win,
XCB_CONFIG_WINDOW_BORDER_WIDTH, &list);
+ ecore_x_flush();
}
/**
xcb_configure_window(_ecore_xcb_conn, win,
XCB_CONFIG_WINDOW_STACK_MODE, list);
+ ecore_x_flush();
}
/**
xcb_configure_window(_ecore_xcb_conn, win,
XCB_CONFIG_WINDOW_STACK_MODE, list);
+ ecore_x_flush();
}
/**
(const char *)&ev);
xcb_unmap_window(_ecore_xcb_conn, win);
+ ecore_x_flush();
}
}
xcb_set_input_focus(_ecore_xcb_conn,
XCB_INPUT_FOCUS_PARENT, win, XCB_CURRENT_TIME);
+ ecore_x_flush();
}
/**
if (!win) win = ((xcb_screen_t *)_ecore_xcb_screen)->root;
xcb_set_input_focus(_ecore_xcb_conn, XCB_INPUT_FOCUS_PARENT, win, time);
+ ecore_x_flush();
}
/**
parent = ((xcb_screen_t *)_ecore_xcb_screen)->root;
xcb_reparent_window(_ecore_xcb_conn, win, parent, x, y);
+ ecore_x_flush();
}
EAPI void
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_BACK_PIXMAP, &list);
+ ecore_x_flush();
}
/**
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_BACK_PIXEL, &list);
+ ecore_x_flush();
}
EAPI void
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_BIT_GRAVITY, &list);
+ ecore_x_flush();
}
EAPI void
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_WIN_GRAVITY, &list);
+ ecore_x_flush();
}
EAPI void
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_OVERRIDE_REDIRECT, &list);
+ ecore_x_flush();
}
/**
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_CURSOR, &list);
}
+ ecore_x_flush();
}
EAPI void
list = cursor;
xcb_change_window_attributes(_ecore_xcb_conn, win, XCB_CW_CURSOR, &list);
+ ecore_x_flush();
}
EAPI void
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_EVENT_MASK, &list);
+ ecore_x_flush();
}
EAPI void
#ifdef ECORE_XCB_SHAPE
xcb_shape_select_input(_ecore_xcb_conn, win, 1);
#endif
+ ecore_x_flush();
}
EAPI void
xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_EVENT_MASK, &list);
+ ecore_x_flush();
}
EAPI void
#ifdef ECORE_XCB_SHAPE
xcb_shape_select_input(_ecore_xcb_conn, win, 1);
#endif
-
+ ecore_x_flush();
}
EAPI void
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_clear_area(_ecore_xcb_conn, 0, win, x, y, w, h);
+ ecore_x_flush();
}
EAPI void
LOGFN(__FILE__, __LINE__, __FUNCTION__);
xcb_clear_area(_ecore_xcb_conn, 1, win, x, y, w, h);
+ ecore_x_flush();
}
EAPI void
reply = xcb_get_window_attributes_reply(_ecore_xcb_conn, cookie, NULL);
if (!reply) return EINA_FALSE;
- ecore_x_sync(); // needed
+ ecore_x_flush(); // needed
+// ecore_x_sync(); // needed
/* FIXME: XLib uses XSelectInput */
/* FIXME: Add error handler trap */
change_cookie = xcb_change_window_attributes(_ecore_xcb_conn, win,
XCB_CW_EVENT_MASK, &list);
- ecore_x_sync(); // needed
+ ecore_x_flush(); // needed
+// ecore_x_sync(); // needed
err = xcb_request_check(_ecore_xcb_conn, change_cookie);
if (err) return EINA_FALSE;
#if SIZEOF_INT == SIZEOF_LONG
xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
ECORE_X_ATOM_CARDINAL, 32, num, (unsigned char *)val);
+ ecore_x_flush();
#else
long *v2;
unsigned int i;
xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
ECORE_X_ATOM_CARDINAL, 32, num, (unsigned char *)v2);
free(v2);
+ ecore_x_flush();
#endif
}
xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
type, 32, num, (unsigned char *)v2);
free(v2);
+ ecore_x_flush();
#endif
}
xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, type,
ECORE_X_ATOM_UTF8_STRING, 8, strlen(str), str);
+ ecore_x_flush();
}
EAPI char *
if (win == 0)
win = ((xcb_screen_t *)_ecore_xcb_screen)->root;
- if (size != 32)
- xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win,
- property, type, size, num, (unsigned char *)data);
+ if (size != 32)
+ {
+ xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win,
+ property, type, size, num, (unsigned char *)data);
+ ecore_x_flush();
+ }
else
{
unsigned long *dat;
property, type, size, num,
(unsigned char *)dat);
free(dat);
+ ecore_x_flush();
}
}
}
#ifdef ECORE_XCB_SHAPE
xcb_shape_mask(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT,
win, 0, 0, mask);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_mask(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING,
win, 0, 0, mask);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING,
XCB_SHAPE_SK_BOUNDING, win, 0, 0, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING,
XCB_SHAPE_SK_BOUNDING, win, x, y, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET,
XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
win, 0, 0, num, (xcb_rectangle_t *)rect);
if (rect) free(rect);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_BOUNDING,
win, 0, 0, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_BOUNDING,
win, x, y, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SUBTRACT,
XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_INTERSECT,
XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
win, 0, 0, num, (xcb_rectangle_t *)&rect);
if (rect) free(rect);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_select_input(_ecore_xcb_conn, win, on);
+ ecore_x_flush();
#else
return;
win = 0;
win, 0, 0, num, (xcb_rectangle_t *)rect);
if (rect) free(rect);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SUBTRACT,
XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET,
XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT,
XCB_SHAPE_SK_INPUT, win, x, y, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, XCB_SHAPE_SK_INPUT,
XCB_SHAPE_SK_INPUT, win, x, y, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
#ifdef ECORE_XCB_SHAPE
xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT,
XCB_SHAPE_SK_INPUT, win, 0, 0, shape_win);
+ ecore_x_flush();
#else
return;
win = 0;
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_INTERSECT,
XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
win, 0, 0, 1, &rect);
+ ecore_x_flush();
#else
return;
win = 0;
win, 0, 0, num, (xcb_rectangle_t *)&rect);
if (rect) free(rect);
+ ecore_x_flush();
#else
return;
win = 0;
region = xcb_generate_id(_ecore_xcb_conn);
xcb_xfixes_create_region(_ecore_xcb_conn, region, num, xrects);
free(xrects);
+ ecore_x_flush();
#endif
return region;
#ifdef ECORE_XCB_XFIXES
region = xcb_generate_id(_ecore_xcb_conn);
xcb_xfixes_create_region_from_bitmap(_ecore_xcb_conn, region, bitmap);
+ ecore_x_flush();
#endif
return region;
#ifdef ECORE_XCB_XFIXES
region = xcb_generate_id(_ecore_xcb_conn);
xcb_xfixes_create_region_from_window(_ecore_xcb_conn, region, win, type);
+ ecore_x_flush();
#endif
return region;
#ifdef ECORE_XCB_XFIXES
region = xcb_generate_id(_ecore_xcb_conn);
xcb_xfixes_create_region_from_gc(_ecore_xcb_conn, region, gc);
+ ecore_x_flush();
#endif
return region;
#ifdef ECORE_XCB_XFIXES
region = xcb_generate_id(_ecore_xcb_conn);
xcb_xfixes_create_region_from_picture(_ecore_xcb_conn, region, picture);
+ ecore_x_flush();
#endif
return region;
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_destroy_region(_ecore_xcb_conn, region);
+ ecore_x_flush();
#endif
}
xrects = _ecore_xcb_rect_to_xcb(rects, num);
xcb_xfixes_set_region(_ecore_xcb_conn, region, num, xrects);
free(xrects);
+ ecore_x_flush();
#endif
}
// NB: Hmmmm...this may need converting to/fro xcb_rectangle_t
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_copy_region(_ecore_xcb_conn, source, dest);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_union_region(_ecore_xcb_conn, source1, source2, dest);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_intersect_region(_ecore_xcb_conn, source1, source2, dest);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_subtract_region(_ecore_xcb_conn, source1, source2, dest);
+ ecore_x_flush();
#endif
}
xrects.height = bounds->height;
xcb_xfixes_invert_region(_ecore_xcb_conn, source, xrects, dest);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_translate_region(_ecore_xcb_conn, region, dx, dy);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_region_extents(_ecore_xcb_conn, source, dest);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_expand_region(_ecore_xcb_conn, source, dest, left, right, top, bottom);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_set_gc_clip_region(_ecore_xcb_conn, gc, region, x, y);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_set_window_shape_region(_ecore_xcb_conn, dest, type, x, y, region);
+ ecore_x_flush();
#endif
}
#ifdef ECORE_XCB_XFIXES
xcb_xfixes_set_picture_clip_region(_ecore_xcb_conn, picture, region, x, y);
+ ecore_x_flush();
#endif
}