sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit cf7c77e56ab895efd3b113debd53fc5881dd7205
parent 788b715776b6d8c1ed3c67929a17a4d0d4079458
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Sat, 22 Dec 2018 11:59:41 -0500

Fix wlr_box_intersection args for wlroots 1441

The fix pushed to master missed wlr_box_intersection. This just fixes
those lines so sway renders properly again

Diffstat:
Msway/desktop/output.c | 2+-
Msway/desktop/render.c | 2+-
Msway/tree/container.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -108,7 +108,7 @@ static bool get_surface_box(struct surface_iterator_data *data, }; struct wlr_box intersection; - return wlr_box_intersection(&output_box, &rotated_box, &intersection); + return wlr_box_intersection(&intersection, &output_box, &rotated_box); } static void output_for_each_surface_iterator(struct wlr_surface *surface, diff --git a/sway/desktop/render.c b/sway/desktop/render.c @@ -261,7 +261,7 @@ static void render_saved_view(struct sway_view *view, }; struct wlr_box intersection; - bool intersects = wlr_box_intersection(&output_box, &box, &intersection); + bool intersects = wlr_box_intersection(&intersection, &output_box, &box); if (!intersects) { return; } diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -979,7 +979,7 @@ void container_discover_outputs(struct sway_container *con) { output_get_box(output, &output_box); struct wlr_box intersection; bool intersects = - wlr_box_intersection(&con_box, &output_box, &intersection); + wlr_box_intersection(&intersection, &con_box, &output_box); int index = list_find(con->outputs, output); if (intersects && index == -1) {