aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-03-03 14:59:03 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-03 15:00:04 -0500
commitc5f5425e5e56d95934244145ee7ec8b4a76754f2 (patch)
tree434eab3906553f7f43e364db33a86410c73c79e0 /legacy/elementary/src/lib/elm_win.c
parentelm_colorselector update (diff)
downloadefl-c5f5425e5e56d95934244145ee7ec8b4a76754f2.tar.gz
elm_win trivial function move
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index ce368db06b..a69a5f8ce3 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1151,6 +1151,31 @@ _elm_win_profile_update(Elm_Win_Data *sd)
}
static void
+_elm_win_frame_obj_update(Elm_Win_Data *sd)
+{
+ int fx, fy, fw, fh;
+ int ox, oy, ow, oh;
+ int sx, sy, sw, sh;
+ int x, y, w, h;
+ evas_object_geometry_get(sd->frame_obj, &fx, &fy, &fw, &fh);
+ evas_object_geometry_get(sd->client_obj, &ox, &oy, &ow, &oh);
+ evas_object_geometry_get(sd->spacer_obj, &sx, &sy, &sw, &sh);
+
+ evas_output_framespace_get(sd->evas, &x, &y, &w, &h);
+
+ if ((x != (ox - fx)) || (y != (oy - fy)) ||
+ (w != (fw - ow)) || (h != (fh - oh)))
+ {
+ evas_output_framespace_set(sd->evas, (ox - fx), (oy - fy),
+ (fw - ow), (fh - oh));
+ }
+
+#ifdef HAVE_ELEMENTARY_WAYLAND
+ ecore_wl_window_opaque_region_set(sd->wl.win, -fx, -(fy - sy), sw, sh);
+#endif
+}
+
+static void
_elm_win_state_change(Ecore_Evas *ee)
{
Elm_Win_Data *sd = _elm_win_associate_get(ee);
@@ -2473,31 +2498,6 @@ static struct _resize_info _border_corner[4] =
#endif
static void
-_elm_win_frame_obj_update(Elm_Win_Data *sd)
-{
- int fx, fy, fw, fh;
- int ox, oy, ow, oh;
- int sx, sy, sw, sh;
- int x, y, w, h;
- evas_object_geometry_get(sd->frame_obj, &fx, &fy, &fw, &fh);
- evas_object_geometry_get(sd->client_obj, &ox, &oy, &ow, &oh);
- evas_object_geometry_get(sd->spacer_obj, &sx, &sy, &sw, &sh);
-
- evas_output_framespace_get(sd->evas, &x, &y, &w, &h);
-
- if ((x != (ox - fx)) || (y != (oy - fy)) ||
- (w != (fw - ow)) || (h != (fh - oh)))
- {
- evas_output_framespace_set(sd->evas, (ox - fx), (oy - fy),
- (fw - ow), (fh - oh));
- }
-
-#ifdef HAVE_ELEMENTARY_WAYLAND
- ecore_wl_window_opaque_region_set(sd->wl.win, -fx, -(fy - sy), sw, sh);
-#endif
-}
-
-static void
_elm_win_frame_obj_move(void *data,
Evas *e EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,