forked from enlightenment/enlightenment
perform client raise before triggering move/resize BEGIN client hook
hooks may further modify stacking, so ensure any changes are done before that point
This commit is contained in:
parent
b98854b17b
commit
9f48fd5a9c
|
@ -807,6 +807,12 @@ _e_client_move_begin(E_Client *ec)
|
||||||
if (!_e_client_action_input_win_new()) return 0;
|
if (!_e_client_action_input_win_new()) return 0;
|
||||||
ec->moving = 1;
|
ec->moving = 1;
|
||||||
ecmove = ec;
|
ecmove = ec;
|
||||||
|
if (!ec->lock_user_stacking)
|
||||||
|
{
|
||||||
|
if (e_config->border_raise_on_mouse_action)
|
||||||
|
evas_object_raise(ec->frame);
|
||||||
|
}
|
||||||
|
|
||||||
_e_client_hook_call(E_CLIENT_HOOK_MOVE_BEGIN, ec);
|
_e_client_hook_call(E_CLIENT_HOOK_MOVE_BEGIN, ec);
|
||||||
if (!ec->moving)
|
if (!ec->moving)
|
||||||
{
|
{
|
||||||
|
@ -814,11 +820,6 @@ _e_client_move_begin(E_Client *ec)
|
||||||
_e_client_action_input_win_del();
|
_e_client_action_input_win_del();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!ec->lock_user_stacking)
|
|
||||||
{
|
|
||||||
if (e_config->border_raise_on_mouse_action)
|
|
||||||
evas_object_raise(ec->frame);
|
|
||||||
}
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5131,6 +5132,11 @@ e_client_resize_begin(E_Client *ec)
|
||||||
(ec->fullscreen) || (ec->lock_user_size))
|
(ec->fullscreen) || (ec->lock_user_size))
|
||||||
goto error;
|
goto error;
|
||||||
if (!_e_client_action_input_win_new()) goto error;
|
if (!_e_client_action_input_win_new()) goto error;
|
||||||
|
if (!ec->lock_user_stacking)
|
||||||
|
{
|
||||||
|
if (e_config->border_raise_on_mouse_action)
|
||||||
|
evas_object_raise(ec->frame);
|
||||||
|
}
|
||||||
ecresize = ec;
|
ecresize = ec;
|
||||||
_e_client_hook_call(E_CLIENT_HOOK_RESIZE_BEGIN, ec);
|
_e_client_hook_call(E_CLIENT_HOOK_RESIZE_BEGIN, ec);
|
||||||
if (!e_client_util_resizing_get(ec))
|
if (!e_client_util_resizing_get(ec))
|
||||||
|
@ -5139,11 +5145,6 @@ e_client_resize_begin(E_Client *ec)
|
||||||
_e_client_action_input_win_del();
|
_e_client_action_input_win_del();
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
if (!ec->lock_user_stacking)
|
|
||||||
{
|
|
||||||
if (e_config->border_raise_on_mouse_action)
|
|
||||||
evas_object_raise(ec->frame);
|
|
||||||
}
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
error:
|
error:
|
||||||
ec->resize_mode = E_POINTER_RESIZE_NONE;
|
ec->resize_mode = E_POINTER_RESIZE_NONE;
|
||||||
|
|
Loading…
Reference in New Issue