also update frame immediately during unmaximize

This commit is contained in:
Mike Blumenkrantz 2014-01-20 00:08:25 -05:00
parent ef2a96eb82
commit d42b24632e
1 changed files with 2 additions and 5 deletions

View File

@ -3382,6 +3382,7 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
if ((ec->maximized & E_MAXIMIZE_TYPE) == E_MAXIMIZE_FULLSCREEN)
{
_e_client_frame_update(ec);
evas_object_smart_callback_call(ec->frame, "unmaximize", NULL);
ec->maximized = E_MAXIMIZE_NONE;
e_client_util_move_resize_without_frame(ec,
@ -3429,6 +3430,7 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
if (!(ec->maximized & E_MAXIMIZE_DIRECTION))
{
ec->maximized = E_MAXIMIZE_NONE;
_e_client_frame_update(ec);
evas_object_smart_callback_call(ec->frame, "unmaximize", NULL);
e_client_util_move_resize_without_frame(ec, x, y, w, h);
e_hints_window_size_unset(ec);
@ -3442,11 +3444,6 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
ec->maximized & E_MAXIMIZE_VERTICAL);
}
if (!e_client_util_ignored_get(ec))
{
ec->border.changed = 1;
EC_CHANGED(ec);
}
e_remember_update(ec);
}