mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xdg-shell: remove view->padding
With the wlroots scene-graph API, the padding variable is no longer needed for windows with Client Side Decoration (CSD).
This commit is contained in:
parent
286b2146c3
commit
b27955050f
4 changed files with 14 additions and 54 deletions
|
|
@ -40,7 +40,7 @@ resistance_move_apply(struct view *view, double *x, double *y)
|
|||
struct wlr_box tgeom = {.x = *x, .y = *y, .width = view->w,
|
||||
.height = view->h};
|
||||
struct output *output;
|
||||
struct border border = view_border(view);
|
||||
struct border border = view->margin;
|
||||
struct edges view_edges; /* The edges of the current view */
|
||||
struct edges target_edges; /* The desired edges */
|
||||
struct edges other_edges; /* The edges of the monitor/other view */
|
||||
|
|
@ -107,7 +107,7 @@ resistance_resize_apply(struct view *view, struct wlr_box *new_view_geo)
|
|||
.height = view->h};
|
||||
struct wlr_box tgeom = {.x = new_view_geo->x, .y = new_view_geo->y,
|
||||
.width = new_view_geo->width, .height = new_view_geo->height};
|
||||
struct border border = view_border(view);
|
||||
struct border border = view->margin;
|
||||
struct edges view_edges; /* The edges of the current view */
|
||||
struct edges target_edges; /* The desired edges */
|
||||
struct edges other_edges; /* The edges of the monitor/other view */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue