don't double unset resize_mode on e_client_resize_begin() failure

This commit is contained in:
Mike Blumenkrantz 2014-02-07 12:04:06 -05:00
parent e68837c1d6
commit dab9f9eb3c
1 changed files with 2 additions and 8 deletions

View File

@ -3883,10 +3883,7 @@ e_client_act_resize_begin(E_Client *ec, E_Binding_Event_Mouse_Button *ev)
}
}
if (!e_client_resize_begin(ec))
{
ec->resize_mode = E_POINTER_RESIZE_NONE;
return;
}
return;
_e_client_action_init(ec);
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;
_e_client_moveinfo_gather(ec, sig);
if (!e_client_resize_begin(ec))
{
ec->resize_mode = E_POINTER_RESIZE_NONE;
return;
}
return;
e_pointer_mode_push(ec, ec->resize_mode);
if (ec->cur_mouse_action)
{