perform frame adjustments before applying wm spec hints during unmaximize

e_client_resize_limit removes frame adjustments before performing calcs,
so ensure that the geometry passed is pre-adjusted to account for this
This commit is contained in:
Mike Blumenkrantz 2017-03-10 15:57:15 -05:00
parent e4b6494936
commit 5720338072
1 changed files with 1 additions and 1 deletions

View File

@ -4235,13 +4235,13 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
ec->maximize_override = 1;
if (!fullscreen)
evas_object_smart_callback_call(ec->frame, "unmaximize", NULL);
e_client_resize_limit(ec, &w, &h);
if (ec->saved.frame &&
(e_comp_object_frame_exists(ec->frame) || (!e_comp_object_frame_allowed(ec->frame))))
{
e_comp_object_frame_xy_adjust(ec->frame, x, y, &x, &y);
e_comp_object_frame_wh_adjust(ec->frame, w, h, &w, &h);
}
e_client_resize_limit(ec, &w, &h);
if (fullscreen)
evas_object_smart_callback_call(ec->frame, "unmaximize", NULL);
if (!_e_client_maximize_run(ec, x, y, w, h))