Replace is_floating boolean with function

This commit is contained in:
Ryan Dwyer 2018-05-25 09:26:23 +10:00
parent 34f35f0bad
commit aaba7642b3
12 changed files with 44 additions and 36 deletions

View file

@ -1147,7 +1147,7 @@ void output_damage_whole_container(struct sway_output *output,
.width = con->width,
.height = con->height,
};
if (con->is_floating) {
if (container_is_floating(con)) {
box.x -= output->wlr_output->lx;
box.y -= output->wlr_output->ly;
}