forked from enlightenment/enlightenment
set signal move/resize clients as action_client internally
technically action_client is used to indicate that an e_action is active, but functionally it really just means "this client is moving or resizing" and the compositor makes certain adjustments based on this
This commit is contained in:
parent
7052c66e74
commit
9e5bf813f9
|
@ -5153,6 +5153,7 @@ e_client_signal_move_begin(E_Client *ec, const char *sig, const char *src EINA_U
|
|||
if (e_client_util_resizing_get(ec) || (ec->moving)) return;
|
||||
_e_client_moveinfo_gather(ec, sig);
|
||||
if (!_e_client_move_begin(ec)) return;
|
||||
_e_client_action_init(ec);
|
||||
e_pointer_mode_push(ec, E_POINTER_MOVE);
|
||||
e_zone_edge_disable();
|
||||
}
|
||||
|
@ -5167,6 +5168,7 @@ e_client_signal_move_end(E_Client *ec, const char *sig EINA_UNUSED, const char *
|
|||
_e_client_move_end(ec);
|
||||
e_zone_edge_enable();
|
||||
e_zone_flip_coords_handle(ec->zone, -1, -1);
|
||||
_e_client_action_finish();
|
||||
}
|
||||
|
||||
E_API void
|
||||
|
@ -5214,6 +5216,7 @@ e_client_signal_resize_begin(E_Client *ec, const char *dir, const char *sig, con
|
|||
_e_client_moveinfo_gather(ec, sig);
|
||||
if (!e_client_resize_begin(ec))
|
||||
return;
|
||||
_e_client_action_init(ec);
|
||||
e_pointer_mode_push(ec, ec->resize_mode);
|
||||
}
|
||||
|
||||
|
@ -5227,6 +5230,7 @@ e_client_signal_resize_end(E_Client *ec, const char *dir EINA_UNUSED, const char
|
|||
_e_client_resize_end(ec);
|
||||
ec->changes.reset_gravity = 1;
|
||||
EC_CHANGED(ec);
|
||||
_e_client_action_finish();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue