view/ssd: Move view->margin to view->ssd.margin

This commit is contained in:
John Lindgren 2022-11-21 15:13:43 -05:00 committed by Consolatis
parent e79c95489a
commit c536ee9d96
6 changed files with 26 additions and 26 deletions

View file

@ -117,6 +117,13 @@ struct ssd {
struct ssd_sub_tree active;
struct ssd_sub_tree inactive;
} border;
/*
* Space between the extremities of the view's wlr_surface
* and the max extents of the server-side decorations.
* For xdg-shell views with CSD, this margin is zero.
*/
struct border margin;
};
struct ssd_part {

View file

@ -59,13 +59,6 @@ struct view {
/* user defined geometry before maximize / tiling / fullscreen */
struct wlr_box natural_geometry;
/*
* margin refers to the space between the extremities of the
* wlr_surface and the max extents of the server-side decorations.
* For xdg-shell views with CSD, this margin is zero.
*/
struct border margin;
struct view_pending_move_resize {
bool update_x, update_y;
int x, y;