block border-affecting client functions for csd clients
This commit is contained in:
parent
14283ffefa
commit
2b38eb9712
|
@ -732,6 +732,7 @@ ACT_FN_GO(window_shaded, )
|
||||||
E_Client *ec;
|
E_Client *ec;
|
||||||
|
|
||||||
ec = (E_Client *)obj;
|
ec = (E_Client *)obj;
|
||||||
|
if (!e_comp_object_frame_allowed(ec->frame)) return;
|
||||||
if (params)
|
if (params)
|
||||||
{
|
{
|
||||||
int v;
|
int v;
|
||||||
|
@ -777,6 +778,7 @@ ACT_FN_GO(window_borderless_toggle, EINA_UNUSED)
|
||||||
E_Client *ec;
|
E_Client *ec;
|
||||||
|
|
||||||
ec = (E_Client *)obj;
|
ec = (E_Client *)obj;
|
||||||
|
if (!e_comp_object_frame_allowed(ec->frame)) return;
|
||||||
ec->borderless = !ec->borderless;
|
ec->borderless = !ec->borderless;
|
||||||
|
|
||||||
ec->border.changed = 1;
|
ec->border.changed = 1;
|
||||||
|
@ -795,6 +797,7 @@ ACT_FN_GO(window_border_set, EINA_UNUSED)
|
||||||
E_Client *ec;
|
E_Client *ec;
|
||||||
|
|
||||||
ec = (E_Client *)obj;
|
ec = (E_Client *)obj;
|
||||||
|
if (!e_comp_object_frame_allowed(ec->frame)) return;
|
||||||
if (ec && params)
|
if (ec && params)
|
||||||
{
|
{
|
||||||
eina_stringshare_replace(&ec->bordername, params);
|
eina_stringshare_replace(&ec->bordername, params);
|
||||||
|
@ -815,6 +818,7 @@ ACT_FN_GO(window_border_cycle, EINA_UNUSED)
|
||||||
E_Client *ec;
|
E_Client *ec;
|
||||||
|
|
||||||
ec = (E_Client *)obj;
|
ec = (E_Client *)obj;
|
||||||
|
if (!e_comp_object_frame_allowed(ec->frame)) return;
|
||||||
if (ec && params)
|
if (ec && params)
|
||||||
{
|
{
|
||||||
const char *space;
|
const char *space;
|
||||||
|
|
|
@ -3662,6 +3662,7 @@ e_client_shade(E_Client *ec, E_Direction dir)
|
||||||
if ((ec->shaded) || (ec->shading) || (ec->fullscreen) ||
|
if ((ec->shaded) || (ec->shading) || (ec->fullscreen) ||
|
||||||
((ec->maximized) && (!e_config->allow_manip))) return;
|
((ec->maximized) && (!e_config->allow_manip))) return;
|
||||||
if (!e_util_strcmp("borderless", ec->bordername)) return;
|
if (!e_util_strcmp("borderless", ec->bordername)) return;
|
||||||
|
if (!e_comp_object_frame_allowed(ec->frame)) return;
|
||||||
|
|
||||||
e_hints_window_shaded_set(ec, 1);
|
e_hints_window_shaded_set(ec, 1);
|
||||||
e_hints_window_shade_direction_set(ec, dir);
|
e_hints_window_shade_direction_set(ec, dir);
|
||||||
|
@ -4194,6 +4195,7 @@ e_client_border_set(E_Client *ec, const char *name)
|
||||||
|
|
||||||
E_OBJECT_CHECK_RETURN(ec, EINA_FALSE);
|
E_OBJECT_CHECK_RETURN(ec, EINA_FALSE);
|
||||||
E_OBJECT_TYPE_CHECK_RETURN(ec, E_CLIENT_TYPE, EINA_FALSE);
|
E_OBJECT_TYPE_CHECK_RETURN(ec, E_CLIENT_TYPE, EINA_FALSE);
|
||||||
|
if (!e_comp_object_frame_allowed(ec->frame)) return EINA_FALSE;
|
||||||
if (ec->border.changed)
|
if (ec->border.changed)
|
||||||
CRI("CALLING WHEN border.changed SET!");
|
CRI("CALLING WHEN border.changed SET!");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue