discomfitor pushed a commit to branch master.
commit 0cc242b5b66c0bdc32e9fdcab9422579999d8200
Author: Mike Blumenkrantz <[email protected]>
Date: Tue Apr 16 08:07:53 2013 +0100
remove some no-longer needed border shape code
---
src/bin/e_border.c | 111 +----------------------------------------------------
1 file changed, 2 insertions(+), 109 deletions(-)
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 3f51a85..94e6bd1 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -3277,60 +3277,7 @@ _e_border_shape_input_rectangle_set(E_Border *bd)
{
if (!bd) return;
- if ((bd->visible) && (bd->shaped_input))
- {
- Ecore_X_Rectangle rects[4];
- Ecore_X_Window twin, twin2;
- int x, y;
-
- twin = ecore_x_window_override_new(bd->zone->container->scratch_win,
- 0, 0, bd->w, bd->h);
- rects[0].x = 0;
- rects[0].y = 0;
- rects[0].width = bd->w;
- rects[0].height = bd->client_inset.t;
- rects[1].x = 0;
- rects[1].y = bd->client_inset.t;
- rects[1].width = bd->client_inset.l;
- rects[1].height = bd->h - bd->client_inset.t - bd->client_inset.b;
- rects[2].x = bd->w - bd->client_inset.r;
- rects[2].y = bd->client_inset.t;
- rects[2].width = bd->client_inset.r;
- rects[2].height = bd->h - bd->client_inset.t - bd->client_inset.b;
- rects[3].x = 0;
- rects[3].y = bd->h - bd->client_inset.b;
- rects[3].width = bd->w;
- rects[3].height = bd->client_inset.b;
- ecore_x_window_shape_input_rectangles_set(twin, rects, 4);
-
- twin2 = ecore_x_window_override_new
- (bd->zone->container->scratch_win, 0, 0,
- bd->w - bd->client_inset.l - bd->client_inset.r,
- bd->h - bd->client_inset.t - bd->client_inset.b);
- x = 0;
- y = 0;
- if ((bd->shading) || (bd->shaded))
- {
- if (bd->shade.dir == E_DIRECTION_UP)
- y = bd->h - bd->client_inset.t - bd->client_inset.b -
- bd->client.h;
- else if (bd->shade.dir == E_DIRECTION_LEFT)
- x = bd->w - bd->client_inset.l - bd->client_inset.r -
- bd->client.w;
- }
- ecore_x_window_shape_input_window_set_xy(twin2, bd->client.win,
- x, y);
- ecore_x_window_shape_input_rectangle_clip(twin2, 0, 0,
- bd->w - bd->client_inset.l -
bd->client_inset.r,
- bd->h - bd->client_inset.t -
bd->client_inset.b);
- ecore_x_window_shape_input_window_add_xy(twin, twin2,
- bd->client_inset.l,
- bd->client_inset.t);
- ecore_x_window_shape_input_window_set(bd->win, twin);
- ecore_x_window_free(twin2);
- ecore_x_window_free(twin);
- }
- else
+ if ((!bd->visible) || (!bd->shaped_input))
{
if (bd->visible) // not shaped input
{
@@ -8748,59 +8695,7 @@ _e_border_eval(E_Border *bd)
if (bd->need_shape_merge)
{
_e_border_shape_input_rectangle_set(bd);
- if (bd->client.shaped)
- {
- Ecore_X_Window twin, twin2;
- int x, y;
- Ecore_X_Rectangle rects[4];
-
- twin = ecore_x_window_override_new
- (bd->zone->container->scratch_win, 0, 0, bd->w, bd->h);
-
-
- rects[0].x = 0;
- rects[0].y = 0;
- rects[0].width = bd->w;
- rects[0].height = bd->client_inset.t;
- rects[1].x = 0;
- rects[1].y = bd->client_inset.t;
- rects[1].width = bd->client_inset.l;
- rects[1].height = bd->h - bd->client_inset.t - bd->client_inset.b;
- rects[2].x = bd->w - bd->client_inset.r;
- rects[2].y = bd->client_inset.t;
- rects[2].width = bd->client_inset.r;
- rects[2].height = bd->h - bd->client_inset.t - bd->client_inset.b;
- rects[3].x = 0;
- rects[3].y = bd->h - bd->client_inset.b;
- rects[3].width = bd->w;
- rects[3].height = bd->client_inset.b;
- ecore_x_window_shape_rectangles_set(twin, rects, 4);
- twin2 = ecore_x_window_override_new
- (bd->zone->container->scratch_win, 0, 0,
- bd->w - bd->client_inset.l - bd->client_inset.r,
- bd->h - bd->client_inset.t - bd->client_inset.b);
- x = 0;
- y = 0;
- if ((bd->shading) || (bd->shaded))
- {
- if (bd->shade.dir == E_DIRECTION_UP)
- y = bd->h - bd->client_inset.t - bd->client_inset.b -
bd->client.h;
- else if (bd->shade.dir == E_DIRECTION_LEFT)
- x = bd->w - bd->client_inset.l - bd->client_inset.r -
bd->client.w;
- }
- ecore_x_window_shape_window_set_xy(twin2, bd->client.win,
- x, y);
- ecore_x_window_shape_rectangle_clip(twin2, 0, 0,
- bd->w - bd->client_inset.l -
bd->client_inset.r,
- bd->h - bd->client_inset.t -
bd->client_inset.b);
- ecore_x_window_shape_window_add_xy(twin, twin2,
- bd->client_inset.l,
- bd->client_inset.t);
- ecore_x_window_free(twin2);
- ecore_x_window_shape_window_set(bd->win, twin);
- ecore_x_window_free(twin);
- }
- else
+ if (!bd->client.shaped)
ecore_x_window_shape_mask_set(bd->win, 0);
// bd->need_shape_export = 1;
bd->need_shape_merge = 0;
@@ -8854,8 +8749,6 @@ _e_border_eval(E_Border *bd)
{
if (bd->client.shaped)
e_container_shape_solid_rect_set(bd->shape, 0, 0, 0, 0);
- else
- e_container_shape_solid_rect_set(bd->shape,
bd->client_inset.l, bd->client_inset.t, bd->client.w, bd->client.h);
E_FREE(bd->shape_rects);
bd->shape_rects = rects;
bd->shape_rects_num = num;
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter