{
e_zone_useful_geometry_get(_G.tinfo->desk->zone, &zx, &zy, &zw, &zh);
- tiling_window_tree_apply(_G.tinfo->tree, zx, zy, zw, zh);
+ tiling_window_tree_apply(_G.tinfo->tree, zx, zy, zw, zh,
+ tiling_g.config->nb_space);
}
}
void
_tiling_window_tree_level_apply(Window_Tree * root, Evas_Coord x, Evas_Coord y,
- Evas_Coord w, Evas_Coord h, int level)
+ Evas_Coord w, Evas_Coord h, int level, Evas_Coord padding)
{
Window_Tree *itr;
Tiling_Split_Type split_type = level % 2;
if (root->client)
{
- tiling_e_client_move_resize_extra(root->client, x, y, w, h);
+ tiling_e_client_move_resize_extra(root->client, x, y,
+ w - padding, h - padding);
return;
}
Evas_Coord itw = w * itr->weight;
total_weight += itr->weight;
- _tiling_window_tree_level_apply(itr, x, y, itw, h, level + 1);
+ _tiling_window_tree_level_apply(itr, x, y, itw, h, level + 1, padding);
x += itw;
}
} else if (split_type == TILING_SPLIT_VERTICAL)
Evas_Coord ith = h * itr->weight;
total_weight += itr->weight;
- _tiling_window_tree_level_apply(itr, x, y, w, ith, level + 1);
+ _tiling_window_tree_level_apply(itr, x, y, w, ith, level + 1, padding);
y += ith;
}
}
void
tiling_window_tree_apply(Window_Tree * root, Evas_Coord x, Evas_Coord y,
- Evas_Coord w, Evas_Coord h)
+ Evas_Coord w, Evas_Coord h, Evas_Coord padding)
{
- _tiling_window_tree_level_apply(root, x, y, w, h, 0);
+ _tiling_window_tree_level_apply(root, x + padding, y + padding,
+ w - padding, h - padding, 0, padding);
}
static Window_Tree *
E_Client * client);
void tiling_window_tree_apply(Window_Tree * root, Evas_Coord x, Evas_Coord y,
- Evas_Coord w, Evas_Coord h);
+ Evas_Coord w, Evas_Coord h, Evas_Coord padding);
Eina_Bool tiling_window_tree_node_resize(Window_Tree * node, int w_dir,
double w_diff, int h_dir, double h_diff);