mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
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
This commit is contained in:
parent
788b715776
commit
cf7c77e56a
3 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@ static bool get_surface_box(struct surface_iterator_data *data,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wlr_box intersection;
|
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,
|
static void output_for_each_surface_iterator(struct wlr_surface *surface,
|
||||||
|
|
|
@ -261,7 +261,7 @@ static void render_saved_view(struct sway_view *view,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wlr_box intersection;
|
struct wlr_box intersection;
|
||||||
bool intersects = wlr_box_intersection(&output_box, &box, &intersection);
|
bool intersects = wlr_box_intersection(&intersection, &output_box, &box);
|
||||||
if (!intersects) {
|
if (!intersects) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -979,7 +979,7 @@ void container_discover_outputs(struct sway_container *con) {
|
||||||
output_get_box(output, &output_box);
|
output_get_box(output, &output_box);
|
||||||
struct wlr_box intersection;
|
struct wlr_box intersection;
|
||||||
bool intersects =
|
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);
|
int index = list_find(con->outputs, output);
|
||||||
|
|
||||||
if (intersects && index == -1) {
|
if (intersects && index == -1) {
|
||||||
|
|
Loading…
Reference in a new issue