diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2015-11-24 17:31:47 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2015-12-04 16:00:37 -0500 |
commit | c05b284b4f4c29453c1c15df7edc6e5699e2c928 (patch) | |
tree | 58c907dd7454cdc4c88a66d0256c971e8d2f1cab | |
parent | 874c9d43bd463455d631e454324188302724f805 (diff) | |
download | enlightenment-c05b284b4f4c29453c1c15df7edc6e5699e2c928.tar.gz |
use CSD geometry during move/resize display
this should provide more user-relevant information
-rw-r--r-- | src/bin/e_moveresize.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/bin/e_moveresize.c b/src/bin/e_moveresize.c index d78d65bdfc..9b9ce8e4c6 100644 --- a/src/bin/e_moveresize.c +++ b/src/bin/e_moveresize.c @@ -56,28 +56,24 @@ e_moveresize_replace(Eina_Bool enable) E_API void e_moveresize_client_extents(const E_Client *ec, int *w, int *h) { + if (e_comp_object_frame_allowed(ec->frame)) + *w = ec->client.w, *h = ec->client.h; + else + *w = ec->w, *h = ec->h; if ((ec->icccm.base_w >= 0) && (ec->icccm.base_h >= 0)) { if (ec->icccm.step_w > 0) - *w = (ec->client.w - ec->icccm.base_w) / ec->icccm.step_w; - else - *w = ec->client.w; + *w = (*w - ec->icccm.base_w) / ec->icccm.step_w; if (ec->icccm.step_h > 0) - *h = (ec->client.h - ec->icccm.base_h) / ec->icccm.step_h; - else - *h = ec->client.h; + *h = (*h - ec->icccm.base_h) / ec->icccm.step_h; } else { if (ec->icccm.step_w > 0) - *w = (ec->client.w - ec->icccm.min_w) / ec->icccm.step_w; - else - *w = ec->client.w; + *w = (*w - ec->icccm.min_w) / ec->icccm.step_w; if (ec->icccm.step_h > 0) - *h = (ec->client.h - ec->icccm.min_h) / ec->icccm.step_h; - else - *h = ec->client.h; + *h = (*h - ec->icccm.min_h) / ec->icccm.step_h; } } |