forked from enlightenment/enlightenment
use e_client_border_set() in tiling
This commit is contained in:
parent
291c1f7cc5
commit
87b9003092
|
@ -217,19 +217,9 @@ is_tilable(const E_Client *ec)
|
|||
static void
|
||||
change_window_border(E_Client *ec, const char *bordername)
|
||||
{
|
||||
Eina_Stringshare *pborder;
|
||||
|
||||
if (!e_util_strcmp(ec->border.name, bordername)) return;
|
||||
pborder = ec->border.name;
|
||||
ec->border.name = eina_stringshare_add(bordername);
|
||||
if (e_comp_object_frame_theme_set(ec->frame, bordername))
|
||||
eina_stringshare_del(pborder);
|
||||
else
|
||||
{
|
||||
eina_stringshare_del(ec->border.name);
|
||||
ec->border.name = pborder;
|
||||
}
|
||||
ec->border.changed = 0;
|
||||
if (e_client_border_set(ec, bordername))
|
||||
eina_stringshare_refplace(&ec->bordername, ec->border.name);
|
||||
|
||||
DBG("%p -> border %s", ec, bordername);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue