summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/xlib/ecore_x_window_shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_x/xlib/ecore_x_window_shape.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_window_shape.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_window_shape.c b/src/lib/ecore_x/xlib/ecore_x_window_shape.c
index df3e76b..987aa07 100644
--- a/src/lib/ecore_x/xlib/ecore_x_window_shape.c
+++ b/src/lib/ecore_x/xlib/ecore_x_window_shape.c
@@ -29,6 +29,7 @@ ecore_x_window_shape_mask_set(Ecore_X_Window win,
29{ 29{
30 LOGFN(__FILE__, __LINE__, __FUNCTION__); 30 LOGFN(__FILE__, __LINE__, __FUNCTION__);
31 XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet); 31 XShapeCombineMask(_ecore_x_disp, win, ShapeBounding, 0, 0, mask, ShapeSet);
32 if (_ecore_xlib_sync) ecore_x_sync();
32} 33}
33 34
34/** 35/**
@@ -45,6 +46,7 @@ ecore_x_window_shape_input_mask_set(Ecore_X_Window win,
45 LOGFN(__FILE__, __LINE__, __FUNCTION__); 46 LOGFN(__FILE__, __LINE__, __FUNCTION__);
46#ifdef ShapeInput 47#ifdef ShapeInput
47 XShapeCombineMask(_ecore_x_disp, win, ShapeInput, 0, 0, mask, ShapeSet); 48 XShapeCombineMask(_ecore_x_disp, win, ShapeInput, 0, 0, mask, ShapeSet);
49 if (_ecore_xlib_sync) ecore_x_sync();
48#else /* ifdef ShapeInput */ 50#else /* ifdef ShapeInput */
49 return; 51 return;
50 win = mask = 0; 52 win = mask = 0;
@@ -64,6 +66,7 @@ ecore_x_window_shape_window_set(Ecore_X_Window win,
64 shape_win, 66 shape_win,
65 ShapeBounding, 67 ShapeBounding,
66 ShapeSet); 68 ShapeSet);
69 if (_ecore_xlib_sync) ecore_x_sync();
67} 70}
68 71
69EAPI void 72EAPI void
@@ -80,6 +83,7 @@ ecore_x_window_shape_input_window_set(Ecore_X_Window win,
80 shape_win, 83 shape_win,
81 ShapeInput, 84 ShapeInput,
82 ShapeSet); 85 ShapeSet);
86 if (_ecore_xlib_sync) ecore_x_sync();
83#else 87#else
84 return; 88 return;
85 win = shape_win = 0; 89 win = shape_win = 0;
@@ -101,6 +105,7 @@ ecore_x_window_shape_window_set_xy(Ecore_X_Window win,
101 shape_win, 105 shape_win,
102 ShapeBounding, 106 ShapeBounding,
103 ShapeSet); 107 ShapeSet);
108 if (_ecore_xlib_sync) ecore_x_sync();
104} 109}
105 110
106EAPI void 111EAPI void
@@ -119,6 +124,7 @@ ecore_x_window_shape_input_window_set_xy(Ecore_X_Window win,
119 shape_win, 124 shape_win,
120 ShapeInput, 125 ShapeInput,
121 ShapeSet); 126 ShapeSet);
127 if (_ecore_xlib_sync) ecore_x_sync();
122#else 128#else
123 return; 129 return;
124 win = shape_win = x = y = 0; 130 win = shape_win = x = y = 0;
@@ -148,6 +154,7 @@ ecore_x_window_shape_rectangle_set(Ecore_X_Window win,
148 1, 154 1,
149 ShapeSet, 155 ShapeSet,
150 Unsorted); 156 Unsorted);
157 if (_ecore_xlib_sync) ecore_x_sync();
151} 158}
152 159
153EAPI void 160EAPI void
@@ -174,6 +181,7 @@ ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win,
174 1, 181 1,
175 ShapeSet, 182 ShapeSet,
176 Unsorted); 183 Unsorted);
184 if (_ecore_xlib_sync) ecore_x_sync();
177#else 185#else
178 return; 186 return;
179 win = x = y = w = h = 0; 187 win = x = y = w = h = 0;
@@ -212,6 +220,7 @@ ecore_x_window_shape_rectangles_set(Ecore_X_Window win,
212 num, 220 num,
213 ShapeSet, 221 ShapeSet,
214 Unsorted); 222 Unsorted);
223 if (_ecore_xlib_sync) ecore_x_sync();
215 if (rect) free(rect); 224 if (rect) free(rect);
216#else 225#else
217 return; 226 return;
@@ -251,6 +260,7 @@ ecore_x_window_shape_input_rectangles_set(Ecore_X_Window win,
251 num, 260 num,
252 ShapeSet, 261 ShapeSet,
253 Unsorted); 262 Unsorted);
263 if (_ecore_xlib_sync) ecore_x_sync();
254 if (rect) free(rect); 264 if (rect) free(rect);
255#else 265#else
256 return; 266 return;
@@ -281,6 +291,7 @@ ecore_x_window_shape_rectangle_subtract(Ecore_X_Window win,
281 1, 291 1,
282 ShapeSubtract, 292 ShapeSubtract,
283 Unsorted); 293 Unsorted);
294 if (_ecore_xlib_sync) ecore_x_sync();
284} 295}
285 296
286EAPI void 297EAPI void
@@ -307,6 +318,7 @@ ecore_x_window_shape_input_rectangle_subtract(Ecore_X_Window win,
307 1, 318 1,
308 ShapeSubtract, 319 ShapeSubtract,
309 Unsorted); 320 Unsorted);
321 if (_ecore_xlib_sync) ecore_x_sync();
310#else 322#else
311 return; 323 return;
312 win = x = y = w = h = 0; 324 win = x = y = w = h = 0;
@@ -326,6 +338,7 @@ ecore_x_window_shape_window_add(Ecore_X_Window win,
326 shape_win, 338 shape_win,
327 ShapeBounding, 339 ShapeBounding,
328 ShapeUnion); 340 ShapeUnion);
341 if (_ecore_xlib_sync) ecore_x_sync();
329} 342}
330 343
331EAPI void 344EAPI void
@@ -343,6 +356,7 @@ ecore_x_window_shape_window_add_xy(Ecore_X_Window win,
343 shape_win, 356 shape_win,
344 ShapeBounding, 357 ShapeBounding,
345 ShapeUnion); 358 ShapeUnion);
359 if (_ecore_xlib_sync) ecore_x_sync();
346} 360}
347 361
348EAPI void 362EAPI void
@@ -361,6 +375,7 @@ ecore_x_window_shape_input_window_add_xy(Ecore_X_Window win,
361 shape_win, 375 shape_win,
362 ShapeInput, 376 ShapeInput,
363 ShapeUnion); 377 ShapeUnion);
378 if (_ecore_xlib_sync) ecore_x_sync();
364#else 379#else
365 return; 380 return;
366 win = shape_win = x = y = 0; 381 win = shape_win = x = y = 0;
@@ -390,6 +405,7 @@ ecore_x_window_shape_rectangle_add(Ecore_X_Window win,
390 1, 405 1,
391 ShapeUnion, 406 ShapeUnion,
392 Unsorted); 407 Unsorted);
408 if (_ecore_xlib_sync) ecore_x_sync();
393} 409}
394 410
395EAPI void 411EAPI void
@@ -416,6 +432,7 @@ ecore_x_window_shape_input_rectangle_add(Ecore_X_Window win,
416 1, 432 1,
417 ShapeUnion, 433 ShapeUnion,
418 Unsorted); 434 Unsorted);
435 if (_ecore_xlib_sync) ecore_x_sync();
419#else 436#else
420 return; 437 return;
421 win = x = y = w = h = 0; 438 win = x = y = w = h = 0;
@@ -445,6 +462,7 @@ ecore_x_window_shape_rectangle_clip(Ecore_X_Window win,
445 1, 462 1,
446 ShapeIntersect, 463 ShapeIntersect,
447 Unsorted); 464 Unsorted);
465 if (_ecore_xlib_sync) ecore_x_sync();
448} 466}
449 467
450EAPI void 468EAPI void
@@ -471,6 +489,7 @@ ecore_x_window_shape_input_rectangle_clip(Ecore_X_Window win,
471 1, 489 1,
472 ShapeIntersect, 490 ShapeIntersect,
473 Unsorted); 491 Unsorted);
492 if (_ecore_xlib_sync) ecore_x_sync();
474#else 493#else
475 return; 494 return;
476 win = x = y = w = h = 0; 495 win = x = y = w = h = 0;
@@ -508,6 +527,7 @@ ecore_x_window_shape_rectangles_add(Ecore_X_Window win,
508 num, 527 num,
509 ShapeUnion, 528 ShapeUnion,
510 Unsorted); 529 Unsorted);
530 if (_ecore_xlib_sync) ecore_x_sync();
511 if (rect) free(rect); 531 if (rect) free(rect);
512} 532}
513 533
@@ -543,6 +563,7 @@ ecore_x_window_shape_input_rectangles_add(Ecore_X_Window win,
543 num, 563 num,
544 ShapeUnion, 564 ShapeUnion,
545 Unsorted); 565 Unsorted);
566 if (_ecore_xlib_sync) ecore_x_sync();
546 if (rect) free(rect); 567 if (rect) free(rect);
547#else 568#else
548 return; 569 return;
@@ -560,6 +581,7 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win,
560 581
561 LOGFN(__FILE__, __LINE__, __FUNCTION__); 582 LOGFN(__FILE__, __LINE__, __FUNCTION__);
562 rect = XShapeGetRectangles(_ecore_x_disp, win, ShapeBounding, &num, &ord); 583 rect = XShapeGetRectangles(_ecore_x_disp, win, ShapeBounding, &num, &ord);
584 if (_ecore_xlib_sync) ecore_x_sync();
563 if (rect) 585 if (rect)
564 { 586 {
565 if (num < 1) 587 if (num < 1)
@@ -599,6 +621,7 @@ ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win,
599 621
600 LOGFN(__FILE__, __LINE__, __FUNCTION__); 622 LOGFN(__FILE__, __LINE__, __FUNCTION__);
601 rect = XShapeGetRectangles(_ecore_x_disp, win, ShapeInput, &num, &ord); 623 rect = XShapeGetRectangles(_ecore_x_disp, win, ShapeInput, &num, &ord);
624 if (_ecore_xlib_sync) ecore_x_sync();
602 if (rect) 625 if (rect)
603 { 626 {
604 if (num < 1) 627 if (num < 1)
@@ -638,9 +661,11 @@ ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win,
638 &(rects[0].width), &(rects[0].height), 661 &(rects[0].width), &(rects[0].height),
639 &di, &di)) 662 &di, &di))
640 { 663 {
664 if (_ecore_xlib_sync) ecore_x_sync();
641 free(rects); 665 free(rects);
642 return NULL; 666 return NULL;
643 } 667 }
668 if (_ecore_xlib_sync) ecore_x_sync();
644 if (num_ret) *num_ret = 1; 669 if (num_ret) *num_ret = 1;
645 return rects; 670 return rects;
646#endif 671#endif
@@ -655,5 +680,6 @@ ecore_x_window_shape_events_select(Ecore_X_Window win,
655 XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask); 680 XShapeSelectInput(_ecore_x_disp, win, ShapeNotifyMask);
656 else 681 else
657 XShapeSelectInput(_ecore_x_disp, win, 0); 682 XShapeSelectInput(_ecore_x_disp, win, 0);
683 if (_ecore_xlib_sync) ecore_x_sync();
658} 684}
659 685