discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=aa37188e02153258fbf226d8e3427d8912a4f535
commit aa37188e02153258fbf226d8e3427d8912a4f535 Author: Mike Blumenkrantz <zm...@samsung.com> Date: Wed Feb 12 20:37:39 2014 -0500 add maximize_pre and unmaximize_pre smart callbacks --- src/bin/e_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 1db3bd5..6f5c0cc 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -3304,6 +3304,7 @@ e_client_maximize(E_Client *ec, E_Maximize max) if (!(max & E_MAXIMIZE_DIRECTION)) max |= E_MAXIMIZE_BOTH; if ((ec->shaded) || (ec->shading)) return; + evas_object_smart_callback_call(ec->frame, "maximize_pre", NULL); /* Only allow changes in vertical/ horizontal maximization */ if (((ec->maximized & E_MAXIMIZE_DIRECTION) == (max & E_MAXIMIZE_DIRECTION)) || ((ec->maximized & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_BOTH)) return; @@ -3372,6 +3373,7 @@ e_client_unmaximize(E_Client *ec, E_Maximize max) } if ((ec->shaded) || (ec->shading)) return; + evas_object_smart_callback_call(ec->frame, "unmaximize_pre", NULL); /* Remove directions not used */ max &= (ec->maximized & E_MAXIMIZE_DIRECTION); /* Can only remove existing maximization directions */ --