summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2011-09-13 16:32:34 +0000
committerChristopher Michael <cpmichael1@comcast.net>2011-09-13 16:32:34 +0000
commit412876121689f13b0c53d94ea5b4ccfacd787104 (patch)
tree409d7f68d5462fe7d663c5a2a326ffd546e8e328 /legacy
parent6a08cbdd3037c3ee764f7c414a0a623c4f4b1e77 (diff)
Ecore_X(cb): Remove extra calls to ecore_x_flush. Move main loop
flushing call to an idler like ecore_evas does...Thanks k-s ;) SVN revision: 63359
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb.c33
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_composite.c18
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c6
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c14
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_drawable.c2
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c14
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_events.c6
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_gc.c8
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_icccm.c4
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c2
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_netwm.c12
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_pixmap.c6
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c2
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_region.c2
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c2
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_sync.c16
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c52
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c14
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_shape.c44
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xfixes.c36
20 files changed, 154 insertions, 139 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb.c
index ff50b6b4a1..241aea9e18 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb.c
@@ -6,12 +6,14 @@
6static int _ecore_xcb_shutdown(Eina_Bool close_display); 6static int _ecore_xcb_shutdown(Eina_Bool close_display);
7static Eina_Bool _ecore_xcb_fd_handle(void *data, Ecore_Fd_Handler *hdlr __UNUSED__); 7static Eina_Bool _ecore_xcb_fd_handle(void *data, Ecore_Fd_Handler *hdlr __UNUSED__);
8static Eina_Bool _ecore_xcb_fd_handle_buff(void *data, Ecore_Fd_Handler *hdlr __UNUSED__); 8static Eina_Bool _ecore_xcb_fd_handle_buff(void *data, Ecore_Fd_Handler *hdlr __UNUSED__);
9static Eina_Bool _ecore_xcb_idle_enter(void *data __UNUSED__);
9 10
10/* local variables */ 11/* local variables */
11static int _ecore_xcb_init_count = 0; 12static int _ecore_xcb_init_count = 0;
12static int _ecore_xcb_grab_count = 0; 13static int _ecore_xcb_grab_count = 0;
13static Ecore_Fd_Handler *_ecore_xcb_fd_handler = NULL; 14static Ecore_Fd_Handler *_ecore_xcb_fd_handler = NULL;
14static xcb_generic_event_t *_ecore_xcb_event_buffered = NULL; 15static xcb_generic_event_t *_ecore_xcb_event_buffered = NULL;
16static Ecore_Idle_Enterer *_ecore_xcb_idle_enterer = NULL;
15 17
16/* external variables */ 18/* external variables */
17int _ecore_xcb_log_dom = -1; 19int _ecore_xcb_log_dom = -1;
@@ -247,6 +249,9 @@ ecore_x_init(const char *name)
247 if (!_ecore_xcb_fd_handler) 249 if (!_ecore_xcb_fd_handler)
248 return _ecore_xcb_shutdown(EINA_TRUE); 250 return _ecore_xcb_shutdown(EINA_TRUE);
249 251
252 _ecore_xcb_idle_enterer =
253 ecore_idle_enterer_add(_ecore_xcb_idle_enter, NULL);
254
250 /* prefetch atoms */ 255 /* prefetch atoms */
251 _ecore_xcb_atoms_init(); 256 _ecore_xcb_atoms_init();
252 257
@@ -432,7 +437,7 @@ ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Eve
432 cookie = 437 cookie =
433 xcb_send_event_checked(_ecore_xcb_conn, 0, win, mask, (const char *)&ev); 438 xcb_send_event_checked(_ecore_xcb_conn, 0, win, mask, (const char *)&ev);
434 439
435 ecore_x_flush(); 440// ecore_x_flush();
436 441
437 err = xcb_request_check(_ecore_xcb_conn, cookie); 442 err = xcb_request_check(_ecore_xcb_conn, cookie);
438 if (err) 443 if (err)
@@ -482,7 +487,7 @@ ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type, const void *
482 xcb_send_event_checked(_ecore_xcb_conn, 0, win, 487 xcb_send_event_checked(_ecore_xcb_conn, 0, win,
483 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 488 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
484 489
485 ecore_x_flush(); 490// ecore_x_flush();
486 491
487 err = xcb_request_check(_ecore_xcb_conn, cookie); 492 err = xcb_request_check(_ecore_xcb_conn, cookie);
488 if (err) 493 if (err)
@@ -536,7 +541,7 @@ ecore_x_mouse_down_send(Ecore_X_Window win, int x, int y, int b)
536 xcb_send_event_checked(_ecore_xcb_conn, 1, win, 541 xcb_send_event_checked(_ecore_xcb_conn, 1, win,
537 XCB_EVENT_MASK_BUTTON_PRESS, (const char *)&ev); 542 XCB_EVENT_MASK_BUTTON_PRESS, (const char *)&ev);
538 543
539 ecore_x_flush(); 544// ecore_x_flush();
540 545
541 err = xcb_request_check(_ecore_xcb_conn, vcookie); 546 err = xcb_request_check(_ecore_xcb_conn, vcookie);
542 if (err) 547 if (err)
@@ -587,7 +592,7 @@ ecore_x_mouse_up_send(Ecore_X_Window win, int x, int y, int b)
587 xcb_send_event_checked(_ecore_xcb_conn, 1, win, 592 xcb_send_event_checked(_ecore_xcb_conn, 1, win,
588 XCB_EVENT_MASK_BUTTON_RELEASE, (const char *)&ev); 593 XCB_EVENT_MASK_BUTTON_RELEASE, (const char *)&ev);
589 594
590 ecore_x_flush(); 595// ecore_x_flush();
591 596
592 err = xcb_request_check(_ecore_xcb_conn, vcookie); 597 err = xcb_request_check(_ecore_xcb_conn, vcookie);
593 if (err) 598 if (err)
@@ -638,7 +643,7 @@ ecore_x_mouse_move_send(Ecore_X_Window win, int x, int y)
638 xcb_send_event_checked(_ecore_xcb_conn, 1, win, 643 xcb_send_event_checked(_ecore_xcb_conn, 1, win,
639 XCB_EVENT_MASK_POINTER_MOTION, (const char *)&ev); 644 XCB_EVENT_MASK_POINTER_MOTION, (const char *)&ev);
640 645
641 ecore_x_flush(); 646// ecore_x_flush();
642 647
643 err = xcb_request_check(_ecore_xcb_conn, vcookie); 648 err = xcb_request_check(_ecore_xcb_conn, vcookie);
644 if (err) 649 if (err)
@@ -967,7 +972,7 @@ ecore_x_focus_reset(void)
967 xcb_set_input_focus(_ecore_xcb_conn, XCB_INPUT_FOCUS_POINTER_ROOT, 972 xcb_set_input_focus(_ecore_xcb_conn, XCB_INPUT_FOCUS_POINTER_ROOT,
968 ((xcb_screen_t *)_ecore_xcb_screen)->root, 973 ((xcb_screen_t *)_ecore_xcb_screen)->root,
969 XCB_CURRENT_TIME); 974 XCB_CURRENT_TIME);
970 ecore_x_flush(); 975// ecore_x_flush();
971} 976}
972 977
973EAPI void 978EAPI void
@@ -976,7 +981,7 @@ ecore_x_events_allow_all(void)
976 LOGFN(__FILE__, __LINE__, __FUNCTION__); 981 LOGFN(__FILE__, __LINE__, __FUNCTION__);
977 982
978 xcb_allow_events(_ecore_xcb_conn, XCB_ALLOW_ASYNC_BOTH, XCB_CURRENT_TIME); 983 xcb_allow_events(_ecore_xcb_conn, XCB_ALLOW_ASYNC_BOTH, XCB_CURRENT_TIME);
979 ecore_x_flush(); 984// ecore_x_flush();
980} 985}
981 986
982/** 987/**
@@ -992,7 +997,7 @@ ecore_x_kill(Ecore_X_Window win)
992 LOGFN(__FILE__, __LINE__, __FUNCTION__); 997 LOGFN(__FILE__, __LINE__, __FUNCTION__);
993 998
994 xcb_kill_client(_ecore_xcb_conn, win); 999 xcb_kill_client(_ecore_xcb_conn, win);
995 ecore_x_flush(); 1000// ecore_x_flush();
996} 1001}
997 1002
998/** 1003/**
@@ -1313,6 +1318,9 @@ _ecore_xcb_shutdown(Eina_Bool close_display)
1313 1318
1314 LOGFN(__FILE__, __LINE__, __FUNCTION__); 1319 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1315 1320
1321 ecore_idle_enterer_del(_ecore_xcb_idle_enterer);
1322 _ecore_xcb_idle_enterer = NULL;
1323
1316 if (_ecore_xcb_fd_handler) 1324 if (_ecore_xcb_fd_handler)
1317 ecore_main_fd_handler_del(_ecore_xcb_fd_handler); 1325 ecore_main_fd_handler_del(_ecore_xcb_fd_handler);
1318 1326
@@ -1372,7 +1380,7 @@ _ecore_xcb_fd_handle(void *data, Ecore_Fd_Handler *hdlr __UNUSED__)
1372 _ecore_xcb_event_buffered = NULL; 1380 _ecore_xcb_event_buffered = NULL;
1373 } 1381 }
1374 1382
1375 xcb_flush(conn); 1383// xcb_flush(conn);
1376 1384
1377 while ((ev = xcb_poll_for_event(conn))) 1385 while ((ev = xcb_poll_for_event(conn)))
1378 { 1386 {
@@ -1456,3 +1464,10 @@ _ecore_xcb_fd_handle_buff(void *data, Ecore_Fd_Handler *hdlr __UNUSED__)
1456 } 1464 }
1457 return ECORE_CALLBACK_CANCEL; 1465 return ECORE_CALLBACK_CANCEL;
1458} 1466}
1467
1468static Eina_Bool
1469_ecore_xcb_idle_enter(void *data __UNUSED__)
1470{
1471 xcb_flush(_ecore_xcb_conn);
1472 return ECORE_CALLBACK_RENEW;
1473}
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_composite.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_composite.c
index aef9b6acc0..6a3e624aa7 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_composite.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_composite.c
@@ -98,7 +98,7 @@ ecore_x_composite_redirect_window(Ecore_X_Window win, Ecore_X_Composite_Update_T
98 break; 98 break;
99 } 99 }
100 xcb_composite_redirect_window(_ecore_xcb_conn, win, update); 100 xcb_composite_redirect_window(_ecore_xcb_conn, win, update);
101 ecore_x_flush(); 101// ecore_x_flush();
102#endif 102#endif
103} 103}
104 104
@@ -120,7 +120,7 @@ ecore_x_composite_redirect_subwindows(Ecore_X_Window win, Ecore_X_Composite_Upda
120 break; 120 break;
121 } 121 }
122 xcb_composite_redirect_subwindows(_ecore_xcb_conn, win, update); 122 xcb_composite_redirect_subwindows(_ecore_xcb_conn, win, update);
123 ecore_x_flush(); 123// ecore_x_flush();
124#endif 124#endif
125} 125}
126 126
@@ -142,7 +142,7 @@ ecore_x_composite_unredirect_window(Ecore_X_Window win, Ecore_X_Composite_Update
142 break; 142 break;
143 } 143 }
144 xcb_composite_unredirect_window(_ecore_xcb_conn, win, update); 144 xcb_composite_unredirect_window(_ecore_xcb_conn, win, update);
145 ecore_x_flush(); 145// ecore_x_flush();
146#endif 146#endif
147} 147}
148 148
@@ -164,7 +164,7 @@ ecore_x_composite_unredirect_subwindows(Ecore_X_Window win, Ecore_X_Composite_Up
164 break; 164 break;
165 } 165 }
166 xcb_composite_unredirect_subwindows(_ecore_xcb_conn, win, update); 166 xcb_composite_unredirect_subwindows(_ecore_xcb_conn, win, update);
167 ecore_x_flush(); 167// ecore_x_flush();
168#endif 168#endif
169} 169}
170 170
@@ -178,7 +178,7 @@ ecore_x_composite_name_window_pixmap_get(Ecore_X_Window win)
178#ifdef ECORE_XCB_COMPOSITE 178#ifdef ECORE_XCB_COMPOSITE
179 pmap = xcb_generate_id(_ecore_xcb_conn); 179 pmap = xcb_generate_id(_ecore_xcb_conn);
180 xcb_composite_name_window_pixmap(_ecore_xcb_conn, win, pmap); 180 xcb_composite_name_window_pixmap(_ecore_xcb_conn, win, pmap);
181 ecore_x_flush(); 181// ecore_x_flush();
182#endif 182#endif
183 183
184 return pmap; 184 return pmap;
@@ -191,7 +191,7 @@ ecore_x_composite_window_events_disable(Ecore_X_Window win)
191 191
192#ifdef ECORE_XCB_SHAPE 192#ifdef ECORE_XCB_SHAPE
193 ecore_x_window_shape_input_rectangle_set(win, -1, -1, 1, 1); 193 ecore_x_window_shape_input_rectangle_set(win, -1, -1, 1, 1);
194 ecore_x_flush(); 194// ecore_x_flush();
195#else 195#else
196 return; 196 return;
197 win = 0; 197 win = 0;
@@ -205,7 +205,7 @@ ecore_x_composite_window_events_enable(Ecore_X_Window win)
205 205
206#ifdef ECORE_XCB_SHAPE 206#ifdef ECORE_XCB_SHAPE
207 ecore_x_window_shape_input_rectangle_set(win, 0, 0, 65535, 65535); 207 ecore_x_window_shape_input_rectangle_set(win, 0, 0, 65535, 65535);
208 ecore_x_flush(); 208// ecore_x_flush();
209#else 209#else
210 return; 210 return;
211 win = 0; 211 win = 0;
@@ -233,7 +233,7 @@ ecore_x_composite_render_window_enable(Ecore_X_Window root)
233 free(reply); 233 free(reply);
234 234
235 ecore_x_composite_window_events_disable(win); 235 ecore_x_composite_window_events_disable(win);
236 ecore_x_flush(); 236// ecore_x_flush();
237#endif 237#endif
238 238
239 return win; 239 return win;
@@ -246,6 +246,6 @@ ecore_x_composite_render_window_disable(Ecore_X_Window win)
246 246
247#ifdef ECORE_XCB_COMPOSITE 247#ifdef ECORE_XCB_COMPOSITE
248 xcb_composite_release_overlay_window(_ecore_xcb_conn, win); 248 xcb_composite_release_overlay_window(_ecore_xcb_conn, win);
249 ecore_x_flush(); 249// ecore_x_flush();
250#endif 250#endif
251} 251}
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
index fd3b9467ad..c34e45b708 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
@@ -86,7 +86,7 @@ ecore_x_damage_new(Ecore_X_Drawable drawable, Ecore_X_Damage_Report_Level level)
86#ifdef ECORE_XCB_DAMAGE 86#ifdef ECORE_XCB_DAMAGE
87 damage = xcb_generate_id(_ecore_xcb_conn); 87 damage = xcb_generate_id(_ecore_xcb_conn);
88 xcb_damage_create(_ecore_xcb_conn, damage, drawable, level); 88 xcb_damage_create(_ecore_xcb_conn, damage, drawable, level);
89 ecore_x_flush(); 89// ecore_x_flush();
90#endif 90#endif
91 91
92 return damage; 92 return damage;
@@ -108,7 +108,7 @@ ecore_x_damage_free(Ecore_X_Damage damage)
108 108
109#ifdef ECORE_XCB_DAMAGE 109#ifdef ECORE_XCB_DAMAGE
110 xcb_damage_destroy(_ecore_xcb_conn, damage); 110 xcb_damage_destroy(_ecore_xcb_conn, damage);
111 ecore_x_flush(); 111// ecore_x_flush();
112#endif 112#endif
113} 113}
114 114
@@ -137,6 +137,6 @@ ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Re
137 137
138#ifdef ECORE_XCB_DAMAGE 138#ifdef ECORE_XCB_DAMAGE
139 xcb_damage_subtract(_ecore_xcb_conn, damage, repair, parts); 139 xcb_damage_subtract(_ecore_xcb_conn, damage, repair, parts);
140 ecore_x_flush(); 140// ecore_x_flush();
141#endif 141#endif
142} 142}
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c
index d5f0b91019..6bb6133549 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_dnd.c
@@ -119,7 +119,7 @@ ecore_x_dnd_send_status(Eina_Bool will_accept, Eina_Bool suppress, Ecore_X_Recta
119 119
120 xcb_send_event(_ecore_xcb_conn, 0, _target->source, 120 xcb_send_event(_ecore_xcb_conn, 0, _target->source,
121 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 121 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
122 ecore_x_flush(); 122// ecore_x_flush();
123} 123}
124 124
125EAPI Eina_Bool 125EAPI Eina_Bool
@@ -148,7 +148,7 @@ ecore_x_dnd_drop(void)
148 148
149 xcb_send_event(_ecore_xcb_conn, 0, _source->dest, 149 xcb_send_event(_ecore_xcb_conn, 0, _source->dest,
150 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 150 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
151 ecore_x_flush(); 151// ecore_x_flush();
152 _source->state = ECORE_X_DND_SOURCE_DROPPED; 152 _source->state = ECORE_X_DND_SOURCE_DROPPED;
153 status = EINA_TRUE; 153 status = EINA_TRUE;
154 } 154 }
@@ -160,7 +160,7 @@ ecore_x_dnd_drop(void)
160 160
161 xcb_send_event(_ecore_xcb_conn, 0, _source->dest, 161 xcb_send_event(_ecore_xcb_conn, 0, _source->dest,
162 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 162 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
163 ecore_x_flush(); 163// ecore_x_flush();
164 _source->state = ECORE_X_DND_SOURCE_IDLE; 164 _source->state = ECORE_X_DND_SOURCE_IDLE;
165 } 165 }
166 } 166 }
@@ -472,7 +472,7 @@ ecore_x_dnd_send_finished(void)
472 472
473 xcb_send_event(_ecore_xcb_conn, 0, _target->source, 473 xcb_send_event(_ecore_xcb_conn, 0, _target->source,
474 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 474 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
475 ecore_x_flush(); 475// ecore_x_flush();
476 _target->state = ECORE_X_DND_TARGET_IDLE; 476 _target->state = ECORE_X_DND_TARGET_IDLE;
477} 477}
478 478
@@ -531,7 +531,7 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root, int x, int y)
531 531
532 xcb_send_event(_ecore_xcb_conn, 0, _source->dest, 532 xcb_send_event(_ecore_xcb_conn, 0, _source->dest,
533 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 533 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
534 ecore_x_flush(); 534// ecore_x_flush();
535 _source->suppress = 0; 535 _source->suppress = 0;
536 } 536 }
537 537
@@ -570,7 +570,7 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root, int x, int y)
570 570
571 xcb_send_event(_ecore_xcb_conn, 0, win, 571 xcb_send_event(_ecore_xcb_conn, 0, win,
572 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 572 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
573 ecore_x_flush(); 573// ecore_x_flush();
574 _source->await_status = 0; 574 _source->await_status = 0;
575 _source->will_accept = 0; 575 _source->will_accept = 0;
576 } 576 }
@@ -593,7 +593,7 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root, int x, int y)
593 593
594 xcb_send_event(_ecore_xcb_conn, 0, win, 594 xcb_send_event(_ecore_xcb_conn, 0, win,
595 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 595 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
596 ecore_x_flush(); 596// ecore_x_flush();
597 _source->await_status = 1; 597 _source->await_status = 1;
598 } 598 }
599 } 599 }
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_drawable.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_drawable.c
index bc5a7c8aab..9487699177 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_drawable.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_drawable.c
@@ -28,7 +28,7 @@ ecore_x_drawable_rectangle_fill(Ecore_X_Drawable draw, Ecore_X_GC gc, int x, int
28 rect.height = h; 28 rect.height = h;
29 xcb_poly_fill_rectangle(_ecore_xcb_conn, draw, gc, 1, 29 xcb_poly_fill_rectangle(_ecore_xcb_conn, draw, gc, 1,
30 (const xcb_rectangle_t *)&rect); 30 (const xcb_rectangle_t *)&rect);
31 ecore_x_flush(); 31// ecore_x_flush();
32} 32}
33 33
34/** 34/**
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c
index 15f676f51d..f31e184703 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_e.c
@@ -38,7 +38,7 @@ ecore_x_e_comp_sync_draw_done_send(Ecore_X_Window root, Ecore_X_Window win)
38 xcb_send_event(_ecore_xcb_conn, 0, root, 38 xcb_send_event(_ecore_xcb_conn, 0, root,
39 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | 39 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
40 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev); 40 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev);
41 ecore_x_flush(); 41// ecore_x_flush();
42} 42}
43 43
44EAPI void 44EAPI void
@@ -65,7 +65,7 @@ ecore_x_e_comp_sync_draw_size_done_send(Ecore_X_Window root, Ecore_X_Window win,
65 xcb_send_event(_ecore_xcb_conn, 0, root, 65 xcb_send_event(_ecore_xcb_conn, 0, root,
66 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | 66 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
67 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev); 67 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev);
68 ecore_x_flush(); 68// ecore_x_flush();
69} 69}
70 70
71EAPI void 71EAPI void
@@ -170,7 +170,7 @@ ecore_x_e_comp_sync_begin_send(Ecore_X_Window win)
170 170
171 xcb_send_event(_ecore_xcb_conn, 0, win, 171 xcb_send_event(_ecore_xcb_conn, 0, win,
172 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 172 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
173 ecore_x_flush(); 173// ecore_x_flush();
174} 174}
175 175
176EAPI void 176EAPI void
@@ -194,7 +194,7 @@ ecore_x_e_comp_sync_end_send(Ecore_X_Window win)
194 194
195 xcb_send_event(_ecore_xcb_conn, 0, win, 195 xcb_send_event(_ecore_xcb_conn, 0, win,
196 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 196 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
197 ecore_x_flush(); 197// ecore_x_flush();
198} 198}
199 199
200EAPI void 200EAPI void
@@ -218,7 +218,7 @@ ecore_x_e_comp_sync_cancel_send(Ecore_X_Window win)
218 218
219 xcb_send_event(_ecore_xcb_conn, 0, win, 219 xcb_send_event(_ecore_xcb_conn, 0, win,
220 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 220 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
221 ecore_x_flush(); 221// ecore_x_flush();
222} 222}
223 223
224EAPI void 224EAPI void
@@ -242,7 +242,7 @@ ecore_x_e_comp_flush_send(Ecore_X_Window win)
242 242
243 xcb_send_event(_ecore_xcb_conn, 0, win, 243 xcb_send_event(_ecore_xcb_conn, 0, win,
244 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 244 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
245 ecore_x_flush(); 245// ecore_x_flush();
246} 246}
247 247
248EAPI void 248EAPI void
@@ -266,7 +266,7 @@ ecore_x_e_comp_dump_send(Ecore_X_Window win)
266 266
267 xcb_send_event(_ecore_xcb_conn, 0, win, 267 xcb_send_event(_ecore_xcb_conn, 0, win,
268 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 268 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
269 ecore_x_flush(); 269// ecore_x_flush();
270} 270}
271 271
272EAPI void 272EAPI void
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_events.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_events.c
index bfbc915fa1..bb753560fb 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_events.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_events.c
@@ -446,7 +446,7 @@ ecore_x_event_mask_set(Ecore_X_Window win, Ecore_X_Event_Mask mask)
446 free(reply); 446 free(reply);
447 xcb_change_window_attributes(_ecore_xcb_conn, win, 447 xcb_change_window_attributes(_ecore_xcb_conn, win,
448 XCB_CW_EVENT_MASK, &list); 448 XCB_CW_EVENT_MASK, &list);
449 ecore_x_flush(); 449// ecore_x_flush();
450} 450}
451 451
452EAPI void 452EAPI void
@@ -467,7 +467,7 @@ ecore_x_event_mask_unset(Ecore_X_Window win, Ecore_X_Event_Mask mask)
467 free(reply); 467 free(reply);
468 xcb_change_window_attributes(_ecore_xcb_conn, win, 468 xcb_change_window_attributes(_ecore_xcb_conn, win,
469 XCB_CW_EVENT_MASK, &list); 469 XCB_CW_EVENT_MASK, &list);
470 ecore_x_flush(); 470// ecore_x_flush();
471} 471}
472 472
473unsigned int 473unsigned int
@@ -1652,7 +1652,7 @@ _ecore_xcb_event_handle_client_message(xcb_generic_event_t *event)
1652 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | 1652 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
1653 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), 1653 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY),
1654 (const char *)&ev); 1654 (const char *)&ev);
1655 ecore_x_flush(); 1655// ecore_x_flush();
1656 } 1656 }
1657 } 1657 }
1658 else if ((ev->type == ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN) && 1658 else if ((ev->type == ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN) &&
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_gc.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_gc.c
index 4c135e9015..accc662971 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_gc.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_gc.c
@@ -100,7 +100,7 @@ ecore_x_gc_new(Ecore_X_Drawable drawable, Ecore_X_GC_Value_Mask value_mask, cons
100 gc = xcb_generate_id(_ecore_xcb_conn); 100 gc = xcb_generate_id(_ecore_xcb_conn);
101 xcb_create_gc(_ecore_xcb_conn, gc, drawable, vmask, value_list); 101 xcb_create_gc(_ecore_xcb_conn, gc, drawable, vmask, value_list);
102 102
103 ecore_x_flush(); 103// ecore_x_flush();
104 return gc; 104 return gc;
105} 105}
106 106
@@ -114,7 +114,7 @@ ecore_x_gc_free(Ecore_X_GC gc)
114 LOGFN(__FILE__, __LINE__, __FUNCTION__); 114 LOGFN(__FILE__, __LINE__, __FUNCTION__);
115 115
116 xcb_free_gc(_ecore_xcb_conn, gc); 116 xcb_free_gc(_ecore_xcb_conn, gc);
117 ecore_x_flush(); 117// ecore_x_flush();
118} 118}
119 119
120EAPI void 120EAPI void
@@ -126,7 +126,7 @@ ecore_x_gc_foreground_set(Ecore_X_GC gc, unsigned long foreground)
126 126
127 list = foreground; 127 list = foreground;
128 xcb_change_gc(_ecore_xcb_conn, gc, XCB_GC_FOREGROUND, &list); 128 xcb_change_gc(_ecore_xcb_conn, gc, XCB_GC_FOREGROUND, &list);
129 ecore_x_flush(); 129// ecore_x_flush();
130} 130}
131 131
132EAPI void 132EAPI void
@@ -138,5 +138,5 @@ ecore_x_gc_background_set(Ecore_X_GC gc, unsigned long background)
138 138
139 list = background; 139 list = background;
140 xcb_change_gc(_ecore_xcb_conn, gc, XCB_GC_BACKGROUND, &list); 140 xcb_change_gc(_ecore_xcb_conn, gc, XCB_GC_BACKGROUND, &list);
141 ecore_x_flush(); 141// ecore_x_flush();
142} 142}
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_icccm.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_icccm.c
index 6dd6130a29..f672c3d5fb 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_icccm.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_icccm.c
@@ -903,7 +903,7 @@ ecore_x_icccm_iconic_request_send(Ecore_X_Window win, Ecore_X_Window root)
903 (XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | 903 (XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY |
904 XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT), 904 XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT),
905 (const char *)&ev); 905 (const char *)&ev);
906 ecore_x_flush(); 906// ecore_x_flush();
907} 907}
908 908
909/** 909/**
@@ -1304,7 +1304,7 @@ ecore_x_icccm_move_resize_send(Ecore_X_Window win, int x, int y, int w, int h)
1304 1304
1305 xcb_send_event(_ecore_xcb_conn, 0, win, 1305 xcb_send_event(_ecore_xcb_conn, 0, win,
1306 XCB_EVENT_MASK_STRUCTURE_NOTIFY, (const char *)&ev); 1306 XCB_EVENT_MASK_STRUCTURE_NOTIFY, (const char *)&ev);
1307 ecore_x_flush(); 1307// ecore_x_flush();
1308} 1308}
1309 1309
1310/** 1310/**
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c
index 10b5659255..776f717b8b 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_image.c
@@ -64,7 +64,7 @@ ecore_x_image_free(Ecore_X_Image *im)
64 } 64 }
65 65
66 free(im); 66 free(im);
67 ecore_x_flush(); 67// ecore_x_flush();
68} 68}
69 69
70EAPI Eina_Bool 70EAPI Eina_Bool
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_netwm.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_netwm.c
index 32903b009a..1a9e5230cf 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_netwm.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_netwm.c
@@ -277,7 +277,7 @@ ecore_x_netwm_desk_names_set(Ecore_X_Window root, const char **names, unsigned i
277 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, root, 277 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, root,
278 ECORE_X_ATOM_NET_DESKTOP_NAMES, 278 ECORE_X_ATOM_NET_DESKTOP_NAMES,
279 ECORE_X_ATOM_UTF8_STRING, 8, len, (const void *)buf); 279 ECORE_X_ATOM_UTF8_STRING, 8, len, (const void *)buf);
280 ecore_x_flush(); 280// ecore_x_flush();
281 free(buf); 281 free(buf);
282} 282}
283 283
@@ -394,7 +394,7 @@ ecore_x_netwm_state_request_send(Ecore_X_Window win, Ecore_X_Window root, Ecore_
394 xcb_send_event(_ecore_xcb_conn, 0, root, 394 xcb_send_event(_ecore_xcb_conn, 0, root,
395 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | 395 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
396 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev); 396 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev);
397 ecore_x_flush(); 397// ecore_x_flush();
398} 398}
399 399
400EAPI void 400EAPI void
@@ -486,7 +486,7 @@ ecore_x_netwm_client_active_request(Ecore_X_Window root, Ecore_X_Window win, int
486 xcb_send_event(_ecore_xcb_conn, 0, root, 486 xcb_send_event(_ecore_xcb_conn, 0, root,
487 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | 487 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
488 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev); 488 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev);
489 ecore_x_flush(); 489// ecore_x_flush();
490} 490}
491 491
492EAPI void 492EAPI void
@@ -590,7 +590,7 @@ ecore_x_netwm_ping_send(Ecore_X_Window win)
590 590
591 xcb_send_event(_ecore_xcb_conn, 0, win, 591 xcb_send_event(_ecore_xcb_conn, 0, win,
592 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 592 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
593 ecore_x_flush(); 593// ecore_x_flush();
594} 594}
595 595
596EAPI void 596EAPI void
@@ -652,7 +652,7 @@ ecore_x_netwm_sync_request_send(Ecore_X_Window win, unsigned int serial)
652 652
653 xcb_send_event(_ecore_xcb_conn, 0, win, 653 xcb_send_event(_ecore_xcb_conn, 0, win,
654 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 654 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
655 ecore_x_flush(); 655// ecore_x_flush();
656} 656}
657 657
658EAPI void 658EAPI void
@@ -699,7 +699,7 @@ ecore_x_netwm_desktop_request_send(Ecore_X_Window win, Ecore_X_Window root, unsi
699 xcb_send_event(_ecore_xcb_conn, 0, root, 699 xcb_send_event(_ecore_xcb_conn, 0, root,
700 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | 700 (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
701 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev); 701 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY), (const char *)&ev);
702 ecore_x_flush(); 702// ecore_x_flush();
703} 703}
704 704
705EAPI void 705EAPI void
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_pixmap.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_pixmap.c
index 88760b86ec..e194a5256f 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_pixmap.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_pixmap.c
@@ -31,7 +31,7 @@ ecore_x_pixmap_new(Ecore_X_Window win, int w, int h, int dep)
31 pmap = xcb_generate_id(_ecore_xcb_conn); 31 pmap = xcb_generate_id(_ecore_xcb_conn);
32 xcb_create_pixmap(_ecore_xcb_conn, dep, pmap, win, w, h); 32 xcb_create_pixmap(_ecore_xcb_conn, dep, pmap, win, w, h);
33 33
34 ecore_x_flush(); 34// ecore_x_flush();
35 return pmap; 35 return pmap;
36} 36}
37 37
@@ -50,7 +50,7 @@ ecore_x_pixmap_free(Ecore_X_Pixmap pmap)
50 LOGFN(__FILE__, __LINE__, __FUNCTION__); 50 LOGFN(__FILE__, __LINE__, __FUNCTION__);
51 51
52 xcb_free_pixmap(_ecore_xcb_conn, pmap); 52 xcb_free_pixmap(_ecore_xcb_conn, pmap);
53 ecore_x_flush(); 53// ecore_x_flush();
54} 54}
55 55
56/** 56/**
@@ -73,7 +73,7 @@ ecore_x_pixmap_paste(Ecore_X_Pixmap pmap, Ecore_X_Drawable dest, Ecore_X_GC gc,
73 LOGFN(__FILE__, __LINE__, __FUNCTION__); 73 LOGFN(__FILE__, __LINE__, __FUNCTION__);
74 74
75 xcb_copy_area(_ecore_xcb_conn, pmap, dest, gc, sx, sy, dx, dy, w, h); 75 xcb_copy_area(_ecore_xcb_conn, pmap, dest, gc, sx, sy, dx, dy, w, h);
76 ecore_x_flush(); 76// ecore_x_flush();
77} 77}
78 78
79/** 79/**
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 014a774a89..d145c82224 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -2425,7 +2425,7 @@ ecore_x_randr_output_backlight_level_set(Ecore_X_Window root, Ecore_X_Randr_Outp
2425 _backlight, XCB_ATOM_INTEGER, 2425 _backlight, XCB_ATOM_INTEGER,
2426 32, XCB_PROP_MODE_REPLACE, 2426 32, XCB_PROP_MODE_REPLACE,
2427 1, (unsigned char *)&n); 2427 1, (unsigned char *)&n);
2428 ecore_x_flush(); // needed 2428// ecore_x_flush(); // needed
2429 } 2429 }
2430 2430
2431 free(qreply); 2431 free(qreply);
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_region.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_region.c
index a13b207a2e..b0a3792705 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_region.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_region.c
@@ -56,7 +56,7 @@ ecore_x_xregion_set(Ecore_X_XRegion *region, Ecore_X_GC gc)
56 xcb_set_clip_rectangles(_ecore_xcb_conn, XCB_CLIP_ORDERING_YX_BANDED, 56 xcb_set_clip_rectangles(_ecore_xcb_conn, XCB_CLIP_ORDERING_YX_BANDED,
57 gc, 0, 0, num, rects); 57 gc, 0, 0, num, rects);
58 58
59 ecore_x_flush(); 59// ecore_x_flush();
60 return EINA_TRUE; 60 return EINA_TRUE;
61} 61}
62 62
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c
index c7e5c02398..2d495adb6f 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_selection.c
@@ -454,7 +454,7 @@ ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection,
454 454
455 xcb_send_event(_ecore_xcb_conn, 0, requestor, 455 xcb_send_event(_ecore_xcb_conn, 0, requestor,
456 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev); 456 XCB_EVENT_MASK_NO_EVENT, (const char *)&ev);
457 ecore_x_flush(); 457// ecore_x_flush();
458 458
459 return EINA_TRUE; 459 return EINA_TRUE;
460} 460}
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_sync.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_sync.c
index 9d8053246c..24db62207d 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_sync.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_sync.c
@@ -58,7 +58,7 @@ _ecore_xcb_sync_magic_send(int val, Ecore_X_Window win)
58 LOGFN(__FILE__, __LINE__, __FUNCTION__); 58 LOGFN(__FILE__, __LINE__, __FUNCTION__);
59 ecore_x_client_message32_send(win, 27777, XCB_EVENT_MASK_NO_EVENT, 59 ecore_x_client_message32_send(win, 27777, XCB_EVENT_MASK_NO_EVENT,
60 0x7162534, (0x10000000 + val), win, 0, 0); 60 0x7162534, (0x10000000 + val), win, 0, 0);
61 ecore_x_flush(); 61// ecore_x_flush();
62} 62}
63 63
64/* public functions */ 64/* public functions */
@@ -108,7 +108,7 @@ ecore_x_sync_alarm_free(Ecore_X_Sync_Alarm alarm)
108 108
109#ifdef ECORE_XCB_SYNC 109#ifdef ECORE_XCB_SYNC
110 xcb_sync_destroy_alarm(_ecore_xcb_conn, alarm); 110 xcb_sync_destroy_alarm(_ecore_xcb_conn, alarm);
111 ecore_x_flush(); 111// ecore_x_flush();
112 return EINA_TRUE; 112 return EINA_TRUE;
113#endif 113#endif
114 114
@@ -156,7 +156,7 @@ ecore_x_sync_counter_inc(Ecore_X_Sync_Counter counter, int by)
156 v.lo = by; 156 v.lo = by;
157 157
158 xcb_sync_change_counter(_ecore_xcb_conn, counter, v); 158 xcb_sync_change_counter(_ecore_xcb_conn, counter, v);
159 ecore_x_flush(); 159// ecore_x_flush();
160#endif 160#endif
161} 161}
162 162
@@ -193,7 +193,7 @@ ecore_x_sync_counter_val_wait(Ecore_X_Sync_Counter counter, int val)
193 cond.event_threshold = v2; 193 cond.event_threshold = v2;
194 194
195 xcb_sync_await(_ecore_xcb_conn, 1, &cond); 195 xcb_sync_await(_ecore_xcb_conn, 1, &cond);
196 ecore_x_flush(); 196// ecore_x_flush();
197#endif 197#endif
198} 198}
199 199
@@ -215,7 +215,7 @@ ecore_x_sync_counter_new(int val)
215 215
216 counter = xcb_generate_id(_ecore_xcb_conn); 216 counter = xcb_generate_id(_ecore_xcb_conn);
217 xcb_sync_create_counter(_ecore_xcb_conn, counter, v); 217 xcb_sync_create_counter(_ecore_xcb_conn, counter, v);
218 ecore_x_flush(); 218// ecore_x_flush();
219 219
220 return counter; 220 return counter;
221#endif 221#endif
@@ -232,7 +232,7 @@ ecore_x_sync_counter_free(Ecore_X_Sync_Counter counter)
232 232
233#ifdef ECORE_XCB_SYNC 233#ifdef ECORE_XCB_SYNC
234 xcb_sync_destroy_counter(_ecore_xcb_conn, counter); 234 xcb_sync_destroy_counter(_ecore_xcb_conn, counter);
235 ecore_x_flush(); 235// ecore_x_flush();
236#endif 236#endif
237} 237}
238 238
@@ -252,7 +252,7 @@ ecore_x_sync_counter_set(Ecore_X_Sync_Counter counter, int val)
252 v.lo = val; 252 v.lo = val;
253 253
254 xcb_sync_set_counter(_ecore_xcb_conn, counter, v); 254 xcb_sync_set_counter(_ecore_xcb_conn, counter, v);
255 ecore_x_flush(); 255// ecore_x_flush();
256#endif 256#endif
257} 257}
258 258
@@ -272,7 +272,7 @@ ecore_x_sync_counter_2_set(Ecore_X_Sync_Counter counter, int val_hi, unsigned in
272 v.lo = val_lo; 272 v.lo = val_lo;
273 273
274 xcb_sync_set_counter(_ecore_xcb_conn, counter, v); 274 xcb_sync_set_counter(_ecore_xcb_conn, counter, v);
275 ecore_x_flush(); 275// ecore_x_flush();
276#endif 276#endif
277} 277}
278 278
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
index 1446f6a4de..7cc3dd6f20 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
@@ -315,7 +315,7 @@ ecore_x_window_free(Ecore_X_Window win)
315 /* (const char *)&ev); */ 315 /* (const char *)&ev); */
316 316
317 xcb_destroy_window(_ecore_xcb_conn, win); 317 xcb_destroy_window(_ecore_xcb_conn, win);
318 ecore_x_flush(); 318// ecore_x_flush();
319 } 319 }
320} 320}
321 321
@@ -385,7 +385,7 @@ ecore_x_window_configure(Ecore_X_Window win, Ecore_X_Window_Configure_Mask mask,
385 385
386 xcb_configure_window(_ecore_xcb_conn, win, vmask, 386 xcb_configure_window(_ecore_xcb_conn, win, vmask,
387 (const uint32_t *)&vlist); 387 (const uint32_t *)&vlist);
388 ecore_x_flush(); 388// ecore_x_flush();
389} 389}
390 390
391/** 391/**
@@ -420,7 +420,7 @@ ecore_x_window_move(Ecore_X_Window win, int x, int y)
420 420
421 xcb_configure_window(_ecore_xcb_conn, win, mask, 421 xcb_configure_window(_ecore_xcb_conn, win, mask,
422 (const uint32_t *)&list); 422 (const uint32_t *)&list);
423 ecore_x_flush(); 423// ecore_x_flush();
424} 424}
425 425
426/** 426/**
@@ -447,7 +447,7 @@ ecore_x_window_resize(Ecore_X_Window win, int w, int h)
447 447
448 xcb_configure_window(_ecore_xcb_conn, win, mask, 448 xcb_configure_window(_ecore_xcb_conn, win, mask,
449 (const uint32_t *)&list); 449 (const uint32_t *)&list);
450 ecore_x_flush(); 450// ecore_x_flush();
451} 451}
452 452
453/** 453/**
@@ -479,7 +479,7 @@ ecore_x_window_move_resize(Ecore_X_Window win, int x, int y, int w, int h)
479 479
480 xcb_configure_window(_ecore_xcb_conn, win, mask, 480 xcb_configure_window(_ecore_xcb_conn, win, mask,
481 (const uint32_t *)&list); 481 (const uint32_t *)&list);
482 ecore_x_flush(); 482// ecore_x_flush();
483} 483}
484 484
485/** 485/**
@@ -516,7 +516,7 @@ ecore_x_window_border_width_set(Ecore_X_Window win, int border_width)
516 516
517 xcb_configure_window(_ecore_xcb_conn, win, 517 xcb_configure_window(_ecore_xcb_conn, win,
518 XCB_CONFIG_WINDOW_BORDER_WIDTH, &list); 518 XCB_CONFIG_WINDOW_BORDER_WIDTH, &list);
519 ecore_x_flush(); 519// ecore_x_flush();
520} 520}
521 521
522/** 522/**
@@ -539,7 +539,7 @@ ecore_x_window_raise(Ecore_X_Window win)
539 539
540 xcb_configure_window(_ecore_xcb_conn, win, 540 xcb_configure_window(_ecore_xcb_conn, win,
541 XCB_CONFIG_WINDOW_STACK_MODE, list); 541 XCB_CONFIG_WINDOW_STACK_MODE, list);
542 ecore_x_flush(); 542// ecore_x_flush();
543} 543}
544 544
545/** 545/**
@@ -556,7 +556,7 @@ ecore_x_window_lower(Ecore_X_Window win)
556 556
557 xcb_configure_window(_ecore_xcb_conn, win, 557 xcb_configure_window(_ecore_xcb_conn, win,
558 XCB_CONFIG_WINDOW_STACK_MODE, list); 558 XCB_CONFIG_WINDOW_STACK_MODE, list);
559 ecore_x_flush(); 559// ecore_x_flush();
560} 560}
561 561
562/** 562/**
@@ -632,7 +632,7 @@ ecore_x_window_show(Ecore_X_Window win)
632 if (win) 632 if (win)
633 { 633 {
634 xcb_map_window(_ecore_xcb_conn, win); 634 xcb_map_window(_ecore_xcb_conn, win);
635 ecore_x_flush(); 635// ecore_x_flush();
636 } 636 }
637} 637}
638 638
@@ -681,7 +681,7 @@ ecore_x_window_hide(Ecore_X_Window win)
681 (const char *)&ev); 681 (const char *)&ev);
682 682
683 xcb_unmap_window(_ecore_xcb_conn, win); 683 xcb_unmap_window(_ecore_xcb_conn, win);
684 ecore_x_flush(); 684// ecore_x_flush();
685 } 685 }
686} 686}
687 687
@@ -705,7 +705,7 @@ ecore_x_window_focus(Ecore_X_Window win)
705 705
706 xcb_set_input_focus(_ecore_xcb_conn, 706 xcb_set_input_focus(_ecore_xcb_conn,
707 XCB_INPUT_FOCUS_PARENT, win, XCB_CURRENT_TIME); 707 XCB_INPUT_FOCUS_PARENT, win, XCB_CURRENT_TIME);
708 ecore_x_flush(); 708// ecore_x_flush();
709} 709}
710 710
711/** 711/**
@@ -721,7 +721,7 @@ ecore_x_window_focus_at_time(Ecore_X_Window win, Ecore_X_Time time)
721 721
722 if (!win) win = ((xcb_screen_t *)_ecore_xcb_screen)->root; 722 if (!win) win = ((xcb_screen_t *)_ecore_xcb_screen)->root;
723 xcb_set_input_focus(_ecore_xcb_conn, XCB_INPUT_FOCUS_PARENT, win, time); 723 xcb_set_input_focus(_ecore_xcb_conn, XCB_INPUT_FOCUS_PARENT, win, time);
724 ecore_x_flush(); 724// ecore_x_flush();
725} 725}
726 726
727/** 727/**
@@ -747,7 +747,7 @@ ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window parent, int x, int y)
747 parent = ((xcb_screen_t *)_ecore_xcb_screen)->root; 747 parent = ((xcb_screen_t *)_ecore_xcb_screen)->root;
748 748
749 xcb_reparent_window(_ecore_xcb_conn, win, parent, x, y); 749 xcb_reparent_window(_ecore_xcb_conn, win, parent, x, y);
750 ecore_x_flush(); 750// ecore_x_flush();
751} 751}
752 752
753EAPI void 753EAPI void
@@ -761,7 +761,7 @@ ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pixmap)
761 761
762 xcb_change_window_attributes(_ecore_xcb_conn, win, 762 xcb_change_window_attributes(_ecore_xcb_conn, win,
763 XCB_CW_BACK_PIXMAP, &list); 763 XCB_CW_BACK_PIXMAP, &list);
764 ecore_x_flush(); 764// ecore_x_flush();
765} 765}
766 766
767/** 767/**
@@ -791,7 +791,7 @@ ecore_x_window_background_color_set(Ecore_X_Window win, unsigned short red, unsi
791 791
792 xcb_change_window_attributes(_ecore_xcb_conn, win, 792 xcb_change_window_attributes(_ecore_xcb_conn, win,
793 XCB_CW_BACK_PIXEL, &list); 793 XCB_CW_BACK_PIXEL, &list);
794 ecore_x_flush(); 794// ecore_x_flush();
795} 795}
796 796
797EAPI void 797EAPI void
@@ -805,7 +805,7 @@ ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity gravity)
805 805
806 xcb_change_window_attributes(_ecore_xcb_conn, win, 806 xcb_change_window_attributes(_ecore_xcb_conn, win,
807 XCB_CW_BIT_GRAVITY, &list); 807 XCB_CW_BIT_GRAVITY, &list);
808 ecore_x_flush(); 808// ecore_x_flush();
809} 809}
810 810
811EAPI void 811EAPI void
@@ -819,7 +819,7 @@ ecore_x_window_gravity_set(Ecore_X_Window win, Ecore_X_Gravity gravity)
819 819
820 xcb_change_window_attributes(_ecore_xcb_conn, win, 820 xcb_change_window_attributes(_ecore_xcb_conn, win,
821 XCB_CW_WIN_GRAVITY, &list); 821 XCB_CW_WIN_GRAVITY, &list);
822 ecore_x_flush(); 822// ecore_x_flush();
823} 823}
824 824
825EAPI void 825EAPI void
@@ -833,7 +833,7 @@ ecore_x_window_override_set(Ecore_X_Window win, Eina_Bool override)
833 833
834 xcb_change_window_attributes(_ecore_xcb_conn, win, 834 xcb_change_window_attributes(_ecore_xcb_conn, win,
835 XCB_CW_OVERRIDE_REDIRECT, &list); 835 XCB_CW_OVERRIDE_REDIRECT, &list);
836 ecore_x_flush(); 836// ecore_x_flush();
837} 837}
838 838
839/** 839/**
@@ -887,7 +887,7 @@ ecore_x_window_cursor_show(Ecore_X_Window win, Eina_Bool show)
887 xcb_change_window_attributes(_ecore_xcb_conn, win, 887 xcb_change_window_attributes(_ecore_xcb_conn, win,
888 XCB_CW_CURSOR, &list); 888 XCB_CW_CURSOR, &list);
889 } 889 }
890 ecore_x_flush(); 890// ecore_x_flush();
891} 891}
892 892
893EAPI void 893EAPI void
@@ -900,7 +900,7 @@ ecore_x_window_cursor_set(Ecore_X_Window win, Ecore_X_Cursor cursor)
900 list = cursor; 900 list = cursor;
901 901
902 xcb_change_window_attributes(_ecore_xcb_conn, win, XCB_CW_CURSOR, &list); 902 xcb_change_window_attributes(_ecore_xcb_conn, win, XCB_CW_CURSOR, &list);
903 ecore_x_flush(); 903// ecore_x_flush();
904} 904}
905 905
906EAPI void 906EAPI void
@@ -915,7 +915,7 @@ ecore_x_window_container_manage(Ecore_X_Window win)
915 915
916 xcb_change_window_attributes(_ecore_xcb_conn, win, 916 xcb_change_window_attributes(_ecore_xcb_conn, win,
917 XCB_CW_EVENT_MASK, &list); 917 XCB_CW_EVENT_MASK, &list);
918 ecore_x_flush(); 918// ecore_x_flush();
919} 919}
920 920
921EAPI void 921EAPI void
@@ -938,7 +938,7 @@ ecore_x_window_client_manage(Ecore_X_Window win)
938#ifdef ECORE_XCB_SHAPE 938#ifdef ECORE_XCB_SHAPE
939 xcb_shape_select_input(_ecore_xcb_conn, win, EINA_TRUE); 939 xcb_shape_select_input(_ecore_xcb_conn, win, EINA_TRUE);
940#endif 940#endif
941 ecore_x_flush(); 941// ecore_x_flush();
942} 942}
943 943
944EAPI void 944EAPI void
@@ -953,7 +953,7 @@ ecore_x_window_sniff(Ecore_X_Window win)
953 953
954 xcb_change_window_attributes(_ecore_xcb_conn, win, 954 xcb_change_window_attributes(_ecore_xcb_conn, win,
955 XCB_CW_EVENT_MASK, &list); 955 XCB_CW_EVENT_MASK, &list);
956 ecore_x_flush(); 956// ecore_x_flush();
957} 957}
958 958
959EAPI void 959EAPI void
@@ -975,7 +975,7 @@ ecore_x_window_client_sniff(Ecore_X_Window win)
975#ifdef ECORE_XCB_SHAPE 975#ifdef ECORE_XCB_SHAPE
976 xcb_shape_select_input(_ecore_xcb_conn, win, EINA_TRUE); 976 xcb_shape_select_input(_ecore_xcb_conn, win, EINA_TRUE);
977#endif 977#endif
978 ecore_x_flush(); 978// ecore_x_flush();
979} 979}
980 980
981EAPI void 981EAPI void
@@ -984,7 +984,7 @@ ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h)
984 LOGFN(__FILE__, __LINE__, __FUNCTION__); 984 LOGFN(__FILE__, __LINE__, __FUNCTION__);
985 985
986 xcb_clear_area(_ecore_xcb_conn, 0, win, x, y, w, h); 986 xcb_clear_area(_ecore_xcb_conn, 0, win, x, y, w, h);
987 ecore_x_flush(); 987// ecore_x_flush();
988} 988}
989 989
990EAPI void 990EAPI void
@@ -993,7 +993,7 @@ ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h)
993 LOGFN(__FILE__, __LINE__, __FUNCTION__); 993 LOGFN(__FILE__, __LINE__, __FUNCTION__);
994 994
995 xcb_clear_area(_ecore_xcb_conn, 1, win, x, y, w, h); 995 xcb_clear_area(_ecore_xcb_conn, 1, win, x, y, w, h);
996 ecore_x_flush(); 996// ecore_x_flush();
997} 997}
998 998
999EAPI void 999EAPI void
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c
index ea1d04360e..a6b37cb86e 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_prop.c
@@ -48,7 +48,7 @@ ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned i
48#if SIZEOF_INT == SIZEOF_LONG 48#if SIZEOF_INT == SIZEOF_LONG
49 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom, 49 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
50 ECORE_X_ATOM_CARDINAL, 32, num, (unsigned char *)val); 50 ECORE_X_ATOM_CARDINAL, 32, num, (unsigned char *)val);
51 ecore_x_flush(); 51// ecore_x_flush();
52#else 52#else
53 long *v2; 53 long *v2;
54 unsigned int i; 54 unsigned int i;
@@ -61,7 +61,7 @@ ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned i
61 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom, 61 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
62 ECORE_X_ATOM_CARDINAL, 32, num, (unsigned char *)v2); 62 ECORE_X_ATOM_CARDINAL, 32, num, (unsigned char *)v2);
63 free(v2); 63 free(v2);
64 ecore_x_flush(); 64// ecore_x_flush();
65#endif 65#endif
66} 66}
67 67
@@ -136,7 +136,7 @@ ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom
136#if SIZEOF_INT == SIZEOF_LONG 136#if SIZEOF_INT == SIZEOF_LONG
137 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom, 137 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
138 type, 32, num, (unsigned char *)xids); 138 type, 32, num, (unsigned char *)xids);
139 ecore_x_flush(); 139// ecore_x_flush();
140#else 140#else
141 long *v2; 141 long *v2;
142 unsigned int i; 142 unsigned int i;
@@ -149,7 +149,7 @@ ecore_x_window_prop_xid_set(Ecore_X_Window win, Ecore_X_Atom atom, Ecore_X_Atom
149 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom, 149 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, atom,
150 type, 32, num, (unsigned char *)v2); 150 type, 32, num, (unsigned char *)v2);
151 free(v2); 151 free(v2);
152 ecore_x_flush(); 152// ecore_x_flush();
153#endif 153#endif
154} 154}
155 155
@@ -198,7 +198,7 @@ ecore_x_window_prop_string_set(Ecore_X_Window win, Ecore_X_Atom type, const char
198 198
199 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, type, 199 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, type,
200 ECORE_X_ATOM_UTF8_STRING, 8, strlen(str), str); 200 ECORE_X_ATOM_UTF8_STRING, 8, strlen(str), str);
201 ecore_x_flush(); 201// ecore_x_flush();
202} 202}
203 203
204EAPI char * 204EAPI char *
@@ -306,7 +306,7 @@ ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecor
306 { 306 {
307 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win, 307 xcb_change_property(_ecore_xcb_conn, XCB_PROP_MODE_REPLACE, win,
308 property, type, size, num, (unsigned char *)data); 308 property, type, size, num, (unsigned char *)data);
309 ecore_x_flush(); 309// ecore_x_flush();
310 } 310 }
311 else 311 else
312 { 312 {
@@ -322,7 +322,7 @@ ecore_x_window_prop_property_set(Ecore_X_Window win, Ecore_X_Atom property, Ecor
322 property, type, size, num, 322 property, type, size, num,
323 (unsigned char *)dat); 323 (unsigned char *)dat);
324 free(dat); 324 free(dat);
325 ecore_x_flush(); 325// ecore_x_flush();
326 } 326 }
327 } 327 }
328} 328}
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_shape.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_shape.c
index 52d044000d..ae82ffe7ee 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_shape.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_window_shape.c
@@ -25,7 +25,7 @@ ecore_x_window_shape_input_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
25#ifdef ECORE_XCB_SHAPE 25#ifdef ECORE_XCB_SHAPE
26 xcb_shape_mask(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT, 26 xcb_shape_mask(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT,
27 win, 0, 0, mask); 27 win, 0, 0, mask);
28 ecore_x_flush(); 28// ecore_x_flush();
29#else 29#else
30 return; 30 return;
31 win = 0; 31 win = 0;
@@ -48,7 +48,7 @@ ecore_x_window_shape_mask_set(Ecore_X_Window win, Ecore_X_Pixmap mask)
48#ifdef ECORE_XCB_SHAPE 48#ifdef ECORE_XCB_SHAPE
49 xcb_shape_mask(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING, 49 xcb_shape_mask(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING,
50 win, 0, 0, mask); 50 win, 0, 0, mask);
51 ecore_x_flush(); 51// ecore_x_flush();
52#else 52#else
53 return; 53 return;
54 win = 0; 54 win = 0;
@@ -64,7 +64,7 @@ ecore_x_window_shape_window_set(Ecore_X_Window win, Ecore_X_Window shape_win)
64#ifdef ECORE_XCB_SHAPE 64#ifdef ECORE_XCB_SHAPE
65 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING, 65 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING,
66 XCB_SHAPE_SK_BOUNDING, win, 0, 0, shape_win); 66 XCB_SHAPE_SK_BOUNDING, win, 0, 0, shape_win);
67 ecore_x_flush(); 67// ecore_x_flush();
68#else 68#else
69 return; 69 return;
70 win = 0; 70 win = 0;
@@ -80,7 +80,7 @@ ecore_x_window_shape_window_set_xy(Ecore_X_Window win, Ecore_X_Window shape_win,
80#ifdef ECORE_XCB_SHAPE 80#ifdef ECORE_XCB_SHAPE
81 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING, 81 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_BOUNDING,
82 XCB_SHAPE_SK_BOUNDING, win, x, y, shape_win); 82 XCB_SHAPE_SK_BOUNDING, win, x, y, shape_win);
83 ecore_x_flush(); 83// ecore_x_flush();
84#else 84#else
85 return; 85 return;
86 win = 0; 86 win = 0;
@@ -107,7 +107,7 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win, int x, int y, int w, int
107 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET, 107 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET,
108 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED, 108 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
109 win, 0, 0, 1, &rect); 109 win, 0, 0, 1, &rect);
110 ecore_x_flush(); 110// ecore_x_flush();
111#else 111#else
112 return; 112 return;
113 win = 0; 113 win = 0;
@@ -150,7 +150,7 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle *rects
150 win, 0, 0, num, (xcb_rectangle_t *)rect); 150 win, 0, 0, num, (xcb_rectangle_t *)rect);
151 151
152 if (rect) free(rect); 152 if (rect) free(rect);
153 ecore_x_flush(); 153// ecore_x_flush();
154#else 154#else
155 return; 155 return;
156 win = 0; 156 win = 0;
@@ -168,7 +168,7 @@ ecore_x_window_shape_window_add(Ecore_X_Window win, Ecore_X_Window shape_win)
168 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, 168 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
169 XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_BOUNDING, 169 XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_BOUNDING,
170 win, 0, 0, shape_win); 170 win, 0, 0, shape_win);
171 ecore_x_flush(); 171// ecore_x_flush();
172#else 172#else
173 return; 173 return;
174 win = 0; 174 win = 0;
@@ -185,7 +185,7 @@ ecore_x_window_shape_window_add_xy(Ecore_X_Window win, Ecore_X_Window shape_win,
185 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, 185 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
186 XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_BOUNDING, 186 XCB_SHAPE_SK_BOUNDING, XCB_SHAPE_SK_BOUNDING,
187 win, x, y, shape_win); 187 win, x, y, shape_win);
188 ecore_x_flush(); 188// ecore_x_flush();
189#else 189#else
190 return; 190 return;
191 win = 0; 191 win = 0;
@@ -212,7 +212,7 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win, int x, int y, int w, int
212 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, 212 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
213 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED, 213 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
214 win, 0, 0, 1, &rect); 214 win, 0, 0, 1, &rect);
215 ecore_x_flush(); 215// ecore_x_flush();
216#else 216#else
217 return; 217 return;
218 win = 0; 218 win = 0;
@@ -240,7 +240,7 @@ ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win, int x, int y, int w,
240 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SUBTRACT, 240 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SUBTRACT,
241 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED, 241 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
242 win, 0, 0, 1, &rect); 242 win, 0, 0, 1, &rect);
243 ecore_x_flush(); 243// ecore_x_flush();
244#else 244#else
245 return; 245 return;
246 win = 0; 246 win = 0;
@@ -268,7 +268,7 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win, int x, int y, int w, int
268 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_INTERSECT, 268 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_INTERSECT,
269 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED, 269 XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
270 win, 0, 0, 1, &rect); 270 win, 0, 0, 1, &rect);
271 ecore_x_flush(); 271// ecore_x_flush();
272#else 272#else
273 return; 273 return;
274 win = 0; 274 win = 0;
@@ -310,7 +310,7 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle *rects
310 win, 0, 0, num, (xcb_rectangle_t *)&rect); 310 win, 0, 0, num, (xcb_rectangle_t *)&rect);
311 311
312 if (rect) free(rect); 312 if (rect) free(rect);
313 ecore_x_flush(); 313// ecore_x_flush();
314#else 314#else
315 return; 315 return;
316 win = 0; 316 win = 0;
@@ -380,7 +380,7 @@ ecore_x_window_shape_events_select(Ecore_X_Window win, Eina_Bool on)
380 380
381#ifdef ECORE_XCB_SHAPE 381#ifdef ECORE_XCB_SHAPE
382 xcb_shape_select_input(_ecore_xcb_conn, win, on); 382 xcb_shape_select_input(_ecore_xcb_conn, win, on);
383 ecore_x_flush(); 383// ecore_x_flush();
384#else 384#else
385 return; 385 return;
386 win = 0; 386 win = 0;
@@ -491,7 +491,7 @@ ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win, Ecore_X_Rectangle
491 win, 0, 0, num, (xcb_rectangle_t *)rect); 491 win, 0, 0, num, (xcb_rectangle_t *)rect);
492 492
493 if (rect) free(rect); 493 if (rect) free(rect);
494 ecore_x_flush(); 494// ecore_x_flush();
495#else 495#else
496 return; 496 return;
497 win = 0; 497 win = 0;
@@ -517,7 +517,7 @@ ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win, int x, int y,
517 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SUBTRACT, 517 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SUBTRACT,
518 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED, 518 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
519 win, 0, 0, 1, &rect); 519 win, 0, 0, 1, &rect);
520 ecore_x_flush(); 520// ecore_x_flush();
521#else 521#else
522 return; 522 return;
523 win = 0; 523 win = 0;
@@ -545,7 +545,7 @@ ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win, int x, int y, int w
545 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, 545 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_UNION,
546 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED, 546 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
547 win, 0, 0, 1, &rect); 547 win, 0, 0, 1, &rect);
548 ecore_x_flush(); 548// ecore_x_flush();
549#else 549#else
550 return; 550 return;
551 win = 0; 551 win = 0;
@@ -573,7 +573,7 @@ ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, int x, int y, int w
573 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET, 573 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET,
574 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED, 574 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
575 win, 0, 0, 1, &rect); 575 win, 0, 0, 1, &rect);
576 ecore_x_flush(); 576// ecore_x_flush();
577#else 577#else
578 return; 578 return;
579 win = 0; 579 win = 0;
@@ -592,7 +592,7 @@ ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win, Ecore_X_Window shap
592#ifdef ECORE_XCB_SHAPE 592#ifdef ECORE_XCB_SHAPE
593 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT, 593 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT,
594 XCB_SHAPE_SK_INPUT, win, x, y, shape_win); 594 XCB_SHAPE_SK_INPUT, win, x, y, shape_win);
595 ecore_x_flush(); 595// ecore_x_flush();
596#else 596#else
597 return; 597 return;
598 win = 0; 598 win = 0;
@@ -610,7 +610,7 @@ ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win, Ecore_X_Window shap
610#ifdef ECORE_XCB_SHAPE 610#ifdef ECORE_XCB_SHAPE
611 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, XCB_SHAPE_SK_INPUT, 611 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_UNION, XCB_SHAPE_SK_INPUT,
612 XCB_SHAPE_SK_INPUT, win, x, y, shape_win); 612 XCB_SHAPE_SK_INPUT, win, x, y, shape_win);
613 ecore_x_flush(); 613// ecore_x_flush();
614#else 614#else
615 return; 615 return;
616 win = 0; 616 win = 0;
@@ -628,7 +628,7 @@ ecore_x_window_shape_input_window_set(Ecore_X_Window win, Ecore_X_Window shape_w
628#ifdef ECORE_XCB_SHAPE 628#ifdef ECORE_XCB_SHAPE
629 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT, 629 xcb_shape_combine(_ecore_xcb_conn, XCB_SHAPE_SO_SET, XCB_SHAPE_SK_INPUT,
630 XCB_SHAPE_SK_INPUT, win, 0, 0, shape_win); 630 XCB_SHAPE_SK_INPUT, win, 0, 0, shape_win);
631 ecore_x_flush(); 631// ecore_x_flush();
632#else 632#else
633 return; 633 return;
634 win = 0; 634 win = 0;
@@ -653,7 +653,7 @@ ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win, int x, int y, int
653 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_INTERSECT, 653 xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_INTERSECT,
654 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED, 654 XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
655 win, 0, 0, 1, &rect); 655 win, 0, 0, 1, &rect);
656 ecore_x_flush(); 656// ecore_x_flush();
657#else 657#else
658 return; 658 return;
659 win = 0; 659 win = 0;
@@ -695,7 +695,7 @@ ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win, Ecore_X_Rectangle
695 win, 0, 0, num, (xcb_rectangle_t *)&rect); 695 win, 0, 0, num, (xcb_rectangle_t *)&rect);
696 696
697 if (rect) free(rect); 697 if (rect) free(rect);
698 ecore_x_flush(); 698// ecore_x_flush();
699#else 699#else
700 return; 700 return;
701 win = 0; 701 win = 0;
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xfixes.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xfixes.c
index ff0c5ecd47..202883292f 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xfixes.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_xfixes.c
@@ -133,7 +133,7 @@ ecore_x_region_new(Ecore_X_Rectangle *rects, int num)
133 region = xcb_generate_id(_ecore_xcb_conn); 133 region = xcb_generate_id(_ecore_xcb_conn);
134 xcb_xfixes_create_region(_ecore_xcb_conn, region, num, xrects); 134 xcb_xfixes_create_region(_ecore_xcb_conn, region, num, xrects);
135 free(xrects); 135 free(xrects);
136 ecore_x_flush(); 136// ecore_x_flush();
137#endif 137#endif
138 138
139 return region; 139 return region;
@@ -158,7 +158,7 @@ ecore_x_region_new_from_bitmap(Ecore_X_Pixmap bitmap)
158#ifdef ECORE_XCB_XFIXES 158#ifdef ECORE_XCB_XFIXES
159 region = xcb_generate_id(_ecore_xcb_conn); 159 region = xcb_generate_id(_ecore_xcb_conn);
160 xcb_xfixes_create_region_from_bitmap(_ecore_xcb_conn, region, bitmap); 160 xcb_xfixes_create_region_from_bitmap(_ecore_xcb_conn, region, bitmap);
161 ecore_x_flush(); 161// ecore_x_flush();
162#endif 162#endif
163 163
164 return region; 164 return region;
@@ -185,7 +185,7 @@ ecore_x_region_new_from_window(Ecore_X_Window win, Ecore_X_Region_Type type)
185#ifdef ECORE_XCB_XFIXES 185#ifdef ECORE_XCB_XFIXES
186 region = xcb_generate_id(_ecore_xcb_conn); 186 region = xcb_generate_id(_ecore_xcb_conn);
187 xcb_xfixes_create_region_from_window(_ecore_xcb_conn, region, win, type); 187 xcb_xfixes_create_region_from_window(_ecore_xcb_conn, region, win, type);
188 ecore_x_flush(); 188// ecore_x_flush();
189#endif 189#endif
190 190
191 return region; 191 return region;
@@ -209,7 +209,7 @@ ecore_x_region_new_from_gc(Ecore_X_GC gc)
209#ifdef ECORE_XCB_XFIXES 209#ifdef ECORE_XCB_XFIXES
210 region = xcb_generate_id(_ecore_xcb_conn); 210 region = xcb_generate_id(_ecore_xcb_conn);
211 xcb_xfixes_create_region_from_gc(_ecore_xcb_conn, region, gc); 211 xcb_xfixes_create_region_from_gc(_ecore_xcb_conn, region, gc);
212 ecore_x_flush(); 212// ecore_x_flush();
213#endif 213#endif
214 214
215 return region; 215 return region;
@@ -233,7 +233,7 @@ ecore_x_region_new_from_picture(Ecore_X_Picture picture)
233#ifdef ECORE_XCB_XFIXES 233#ifdef ECORE_XCB_XFIXES
234 region = xcb_generate_id(_ecore_xcb_conn); 234 region = xcb_generate_id(_ecore_xcb_conn);
235 xcb_xfixes_create_region_from_picture(_ecore_xcb_conn, region, picture); 235 xcb_xfixes_create_region_from_picture(_ecore_xcb_conn, region, picture);
236 ecore_x_flush(); 236// ecore_x_flush();
237#endif 237#endif
238 238
239 return region; 239 return region;
@@ -253,7 +253,7 @@ ecore_x_region_free(Ecore_X_Region region)
253 253
254#ifdef ECORE_XCB_XFIXES 254#ifdef ECORE_XCB_XFIXES
255 xcb_xfixes_destroy_region(_ecore_xcb_conn, region); 255 xcb_xfixes_destroy_region(_ecore_xcb_conn, region);
256 ecore_x_flush(); 256// ecore_x_flush();
257#endif 257#endif
258} 258}
259 259
@@ -280,7 +280,7 @@ ecore_x_region_set(Ecore_X_Region region, Ecore_X_Rectangle *rects, int num)
280 xrects = _ecore_xcb_rect_to_xcb(rects, num); 280 xrects = _ecore_xcb_rect_to_xcb(rects, num);
281 xcb_xfixes_set_region(_ecore_xcb_conn, region, num, xrects); 281 xcb_xfixes_set_region(_ecore_xcb_conn, region, num, xrects);
282 free(xrects); 282 free(xrects);
283 ecore_x_flush(); 283// ecore_x_flush();
284#endif 284#endif
285} 285}
286 286
@@ -300,7 +300,7 @@ ecore_x_region_copy(Ecore_X_Region dest, Ecore_X_Region source)
300 // NB: Hmmmm...this may need converting to/fro xcb_rectangle_t 300 // NB: Hmmmm...this may need converting to/fro xcb_rectangle_t
301#ifdef ECORE_XCB_XFIXES 301#ifdef ECORE_XCB_XFIXES
302 xcb_xfixes_copy_region(_ecore_xcb_conn, source, dest); 302 xcb_xfixes_copy_region(_ecore_xcb_conn, source, dest);
303 ecore_x_flush(); 303// ecore_x_flush();
304#endif 304#endif
305} 305}
306 306
@@ -321,7 +321,7 @@ ecore_x_region_combine(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Regi
321 321
322#ifdef ECORE_XCB_XFIXES 322#ifdef ECORE_XCB_XFIXES
323 xcb_xfixes_union_region(_ecore_xcb_conn, source1, source2, dest); 323 xcb_xfixes_union_region(_ecore_xcb_conn, source1, source2, dest);
324 ecore_x_flush(); 324// ecore_x_flush();
325#endif 325#endif
326} 326}
327 327
@@ -342,7 +342,7 @@ ecore_x_region_intersect(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Re
342 342
343#ifdef ECORE_XCB_XFIXES 343#ifdef ECORE_XCB_XFIXES
344 xcb_xfixes_intersect_region(_ecore_xcb_conn, source1, source2, dest); 344 xcb_xfixes_intersect_region(_ecore_xcb_conn, source1, source2, dest);
345 ecore_x_flush(); 345// ecore_x_flush();
346#endif 346#endif
347} 347}
348 348
@@ -363,7 +363,7 @@ ecore_x_region_subtract(Ecore_X_Region dest, Ecore_X_Region source1, Ecore_X_Reg
363 363
364#ifdef ECORE_XCB_XFIXES 364#ifdef ECORE_XCB_XFIXES
365 xcb_xfixes_subtract_region(_ecore_xcb_conn, source1, source2, dest); 365 xcb_xfixes_subtract_region(_ecore_xcb_conn, source1, source2, dest);
366 ecore_x_flush(); 366// ecore_x_flush();
367#endif 367#endif
368} 368}
369 369
@@ -394,7 +394,7 @@ ecore_x_region_invert(Ecore_X_Region dest, Ecore_X_Rectangle *bounds, Ecore_X_Re
394 xrects.height = bounds->height; 394 xrects.height = bounds->height;
395 395
396 xcb_xfixes_invert_region(_ecore_xcb_conn, source, xrects, dest); 396 xcb_xfixes_invert_region(_ecore_xcb_conn, source, xrects, dest);
397 ecore_x_flush(); 397// ecore_x_flush();
398#endif 398#endif
399} 399}
400 400
@@ -414,7 +414,7 @@ ecore_x_region_translate(Ecore_X_Region region, int dx, int dy)
414 414
415#ifdef ECORE_XCB_XFIXES 415#ifdef ECORE_XCB_XFIXES
416 xcb_xfixes_translate_region(_ecore_xcb_conn, region, dx, dy); 416 xcb_xfixes_translate_region(_ecore_xcb_conn, region, dx, dy);
417 ecore_x_flush(); 417// ecore_x_flush();
418#endif 418#endif
419} 419}
420 420
@@ -433,7 +433,7 @@ ecore_x_region_extents(Ecore_X_Region dest, Ecore_X_Region source)
433 433
434#ifdef ECORE_XCB_XFIXES 434#ifdef ECORE_XCB_XFIXES
435 xcb_xfixes_region_extents(_ecore_xcb_conn, source, dest); 435 xcb_xfixes_region_extents(_ecore_xcb_conn, source, dest);
436 ecore_x_flush(); 436// ecore_x_flush();
437#endif 437#endif
438} 438}
439 439
@@ -526,7 +526,7 @@ ecore_x_region_expand(Ecore_X_Region dest, Ecore_X_Region source, unsigned int l
526 526
527#ifdef ECORE_XCB_XFIXES 527#ifdef ECORE_XCB_XFIXES
528 xcb_xfixes_expand_region(_ecore_xcb_conn, source, dest, left, right, top, bottom); 528 xcb_xfixes_expand_region(_ecore_xcb_conn, source, dest, left, right, top, bottom);
529 ecore_x_flush(); 529// ecore_x_flush();
530#endif 530#endif
531} 531}
532 532
@@ -553,7 +553,7 @@ ecore_x_region_gc_clip_set(Ecore_X_Region region, Ecore_X_GC gc, int x, int y)
553 553
554#ifdef ECORE_XCB_XFIXES 554#ifdef ECORE_XCB_XFIXES
555 xcb_xfixes_set_gc_clip_region(_ecore_xcb_conn, gc, region, x, y); 555 xcb_xfixes_set_gc_clip_region(_ecore_xcb_conn, gc, region, x, y);
556 ecore_x_flush(); 556// ecore_x_flush();
557#endif 557#endif
558} 558}
559 559
@@ -577,7 +577,7 @@ ecore_x_region_window_shape_set(Ecore_X_Region region, Ecore_X_Window dest, Ecor
577 577
578#ifdef ECORE_XCB_XFIXES 578#ifdef ECORE_XCB_XFIXES
579 xcb_xfixes_set_window_shape_region(_ecore_xcb_conn, dest, type, x, y, region); 579 xcb_xfixes_set_window_shape_region(_ecore_xcb_conn, dest, type, x, y, region);
580 ecore_x_flush(); 580// ecore_x_flush();
581#endif 581#endif
582} 582}
583 583
@@ -603,7 +603,7 @@ ecore_x_region_picture_clip_set(Ecore_X_Region region, Ecore_X_Picture picture,
603 603
604#ifdef ECORE_XCB_XFIXES 604#ifdef ECORE_XCB_XFIXES
605 xcb_xfixes_set_picture_clip_region(_ecore_xcb_conn, picture, region, x, y); 605 xcb_xfixes_set_picture_clip_region(_ecore_xcb_conn, picture, region, x, y);
606 ecore_x_flush(); 606// ecore_x_flush();
607#endif 607#endif
608} 608}
609 609