apply client resize limit for all possible size values during maximize calcs

Summary:
there was a problem that the app like gnome-terminal had not been restored to origin size after maximization.
I think that's because E overwrite the data of saved.x/y to maximized size in ConfigureRequest handler.
The reason why ConfigureReuqest happen is that the window tried to resize itself properly, since E resize window without regard of size hints.

Reviewers: zmike, seoz

CC: cedric

Differential Revision: https://phab.enlightenment.org/D633
This commit is contained in:
Seunghun Lee 2014-03-13 10:03:12 -04:00 committed by Mike Blumenkrantz
parent b137b7e741
commit 08acb0c6aa
1 changed files with 3 additions and 1 deletions

View File

@ -1488,7 +1488,6 @@ _e_client_maximize(E_Client *ec, E_Maximize max)
w = zw, h = zh;
evas_object_smart_callback_call(ec->frame, "maximize", NULL);
e_client_resize_limit(ec, &w, &h);
e_comp_object_frame_xy_unadjust(ec->frame, ec->x, ec->y, &ecx, &ecy);
e_comp_object_frame_wh_unadjust(ec->frame, ec->w, ec->h, &ecw, &ech);
@ -1502,6 +1501,9 @@ _e_client_maximize(E_Client *ec, E_Maximize max)
else
h = zh;
e_client_resize_limit(ec, &w, &h);
e_client_resize_limit(ec, &zw, &zh);
if (ecx < zx) // window left not useful coordinates
x1 = zx;
else if (ecx + ecw > zx + zw) // window right not useful coordinates