Fix issue with moving from unshaped borders to shaped borders (i.e. Fullscreen -> default).

SVN revision: 32174
This commit is contained in:
Eric Schuele 2007-10-27 19:30:49 +00:00
parent c96be05cc6
commit 3470430324
1 changed files with 3 additions and 13 deletions

View File

@ -5823,6 +5823,7 @@ _e_border_eval(E_Border *bd)
} }
} }
bd->shaped = 0;
if (ok) if (ok)
{ {
const char *shape_option; const char *shape_option;
@ -5831,19 +5832,7 @@ _e_border_eval(E_Border *bd)
shape_option = edje_object_data_get(o, "shaped"); shape_option = edje_object_data_get(o, "shaped");
if (shape_option && !strcmp(shape_option, "1")) if (shape_option && !strcmp(shape_option, "1"))
{ {
if (!bd->shaped) bd->shaped = 1;
{
bd->shaped = 1;
ecore_evas_shaped_set(bd->bg_ecore_evas, bd->shaped);
}
}
else
{
if (bd->shaped)
{
bd->shaped = 0;
ecore_evas_shaped_set(bd->bg_ecore_evas, bd->shaped);
}
} }
if (bd->client.netwm.name) if (bd->client.netwm.name)
@ -5877,6 +5866,7 @@ _e_border_eval(E_Border *bd)
ecore_x_e_frame_size_set(bd->client.win, l, r, t, b); ecore_x_e_frame_size_set(bd->client.win, l, r, t, b);
bd->w += (bd->client_inset.l + bd->client_inset.r); bd->w += (bd->client_inset.l + bd->client_inset.r);
bd->h += (bd->client_inset.t + bd->client_inset.b); bd->h += (bd->client_inset.t + bd->client_inset.b);
ecore_evas_shaped_set(bd->bg_ecore_evas, bd->shaped);
bd->changes.size = 1; bd->changes.size = 1;
ecore_x_window_move(bd->client.shell_win, l, t); ecore_x_window_move(bd->client.shell_win, l, t);
if (bd->bg_object) if (bd->bg_object)