void view_moved(struct view *view);
void view_minimize(struct view *view, bool minimized);
void view_store_natural_geometry(struct view *view);
+
+/**
+ * view_center - center view within some region
+ * @view: view to be centered
+ * @ref: optional reference region (in layout coordinates) to center
+ * within; if NULL, view is centered within usable area of its output
+ */
void view_center(struct view *view, const struct wlr_box *ref);
void view_restore_to(struct view *view, struct wlr_box geometry);
void view_set_untiled(struct view *view);
return dst;
}
-/*
- * At present, a view can only 'enter' one output at a time, although the view
- * may span multiple outputs. Ideally we would handle multiple outputs, but
- * this method is the simplest form of what we want.
- */
static void
view_discover_output(struct view *view)
{