mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Remove check for if floating view intersects output
This commit is contained in:
parent
7d2b33a458
commit
3281574fa3
1 changed files with 1 additions and 15 deletions
|
@ -767,18 +767,6 @@ static void render_container(struct sway_output *output,
|
|||
}
|
||||
}
|
||||
|
||||
static bool floater_intersects_output(struct sway_container *floater,
|
||||
struct sway_container *output) {
|
||||
struct wlr_box box = {
|
||||
.x = floater->x,
|
||||
.y = floater->y,
|
||||
.width = floater->width,
|
||||
.height = floater->height,
|
||||
};
|
||||
return wlr_output_layout_intersects(root_container.sway_root->output_layout,
|
||||
output->sway_output->wlr_output, &box);
|
||||
}
|
||||
|
||||
static void render_floating_container(struct sway_output *soutput,
|
||||
pixman_region32_t *damage, struct sway_container *con) {
|
||||
if (con->type == C_VIEW) {
|
||||
|
@ -824,9 +812,7 @@ static void render_floating(struct sway_output *soutput,
|
|||
for (int k = 0; k < ws->floating->children->length; ++k) {
|
||||
struct sway_container *floater =
|
||||
ws->floating->children->items[k];
|
||||
if (floater_intersects_output(floater, soutput->swayc)) {
|
||||
render_floating_container(soutput, damage, floater);
|
||||
}
|
||||
render_floating_container(soutput, damage, floater);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue