use client geometry for starting unmaximize calculations

the resize operations in this function operate off client geometry, so
stop using frame geometry

fix T2170
This commit is contained in:
Mike Blumenkrantz 2015-04-20 14:31:27 -04:00
parent ad39ca0425
commit 92d8abd38c
1 changed files with 4 additions and 4 deletions

View File

@ -3771,10 +3771,10 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
int w, h, x, y;
Eina_Bool horiz = EINA_FALSE, vert = EINA_FALSE;
w = ec->w;
h = ec->h;
x = ec->x;
y = ec->y;
w = ec->client.w;
h = ec->client.h;
x = ec->client.x;
y = ec->client.y;
if (((ec->maximized & E_MAXIMIZE_TYPE) == E_MAXIMIZE_SMART) ||
((ec->maximized & E_MAXIMIZE_TYPE) == E_MAXIMIZE_EXPAND))