forked from enlightenment/enlightenment
don't double unset resize_mode on e_client_resize_begin() failure
This commit is contained in:
parent
e68837c1d6
commit
dab9f9eb3c
|
@ -3883,10 +3883,7 @@ e_client_act_resize_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!e_client_resize_begin(ec))
|
if (!e_client_resize_begin(ec))
|
||||||
{
|
return;
|
||||||
ec->resize_mode = E_POINTER_RESIZE_NONE;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_e_client_action_init(ec);
|
_e_client_action_init(ec);
|
||||||
e_pointer_mode_push(ec, ec->resize_mode);
|
e_pointer_mode_push(ec, ec->resize_mode);
|
||||||
}
|
}
|
||||||
|
@ -4225,10 +4222,7 @@ e_client_signal_resize_begin(E_Client *ec, const char *dir, const char *sig, con
|
||||||
ec->resize_mode = resize_mode;
|
ec->resize_mode = resize_mode;
|
||||||
_e_client_moveinfo_gather(ec, sig);
|
_e_client_moveinfo_gather(ec, sig);
|
||||||
if (!e_client_resize_begin(ec))
|
if (!e_client_resize_begin(ec))
|
||||||
{
|
return;
|
||||||
ec->resize_mode = E_POINTER_RESIZE_NONE;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
e_pointer_mode_push(ec, ec->resize_mode);
|
e_pointer_mode_push(ec, ec->resize_mode);
|
||||||
if (ec->cur_mouse_action)
|
if (ec->cur_mouse_action)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue