]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: Comment updates
authorJohn Lindgren <john@jlindgren.net>
Sun, 5 Mar 2023 06:58:24 +0000 (01:58 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 5 Mar 2023 08:44:03 +0000 (08:44 +0000)
include/view.h
src/view.c

index d7c0d4980825fbf1637dbb262be3bc029e53b857..aaff7fbe54b48fe9befd2f6309c215d9c8a320d5 100644 (file)
@@ -147,6 +147,13 @@ void view_move(struct view *view, int x, int y);
 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);
index 1ea3401204571301f080d160b1a37037c2b30ea0..a7a6a8a0c4831fd89eb0086488cffe88dd25e760 100644 (file)
@@ -102,11 +102,6 @@ view_get_edge_snap_box(struct view *view, struct output *output,
        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)
 {