Change-Id: I53266b9c42f21c02f9b21578226d438d7c00e1ab
ec->drag.start = 0;
}
+E_API void
+e_client_stay_within_canvas_margin(E_Client *ec)
+{
+ int new_x = ec->x;
+ int new_y = ec->y;
+
+ if (ec->floating)
+ {
+ _e_client_stay_within_canvas_margin(ec, ec->x, ec->y, &new_x, &new_y);
+
+ if ((ec->x != new_x) || (ec->y != new_y))
+ evas_object_move(ec->frame, new_x, new_y);
+ }
+}
+
E_API void
e_client_mouse_move(E_Client *ec, Evas_Point *output)
{
E_API void e_client_visibility_force_obscured_set(E_Client *ec, Eina_Bool set);
+E_API void e_client_stay_within_canvas_margin(E_Client *ec);
+
/**
* Move window to coordinates that do not account client decorations yet.
*
if (!ec) return;
e_comp_object_frame_wh_adjust(ec->frame, w, h, &w, &h);
evas_object_resize(ec->frame, w, h);
+ e_client_stay_within_canvas_margin(ec);
}
/**