From 8fe70c3d2a605b0775f76f4857da6633348454fd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 20 Jan 2014 15:12:23 -0500 Subject: [PATCH] fix client geometry when toggling borderless state --- src/bin/e_comp_object.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index bb8c89906..8f683a0a7 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -2568,9 +2568,10 @@ e_comp_object_frame_theme_set(Evas_Object *obj, const char *name) { int w, h; - w = cw->w, h = cw->h; - e_comp_object_frame_wh_unadjust(obj, w, h, &cw->w, &cw->h); - if (cw->ec && ((cw->w != w) || (cw->h != h))) + w = cw->ec->w, h = cw->ec->h; + e_comp_object_frame_wh_unadjust(obj, w, h, &cw->ec->w, &cw->ec->h); + e_comp_object_frame_xy_unadjust(obj, cw->ec->x, cw->ec->y, &cw->ec->x, &cw->ec->y); + if ((cw->ec->w != w) || (cw->ec->h != h)) { cw->ec->changes.size = 1; EC_CHANGED(cw->ec);