mirror of
https://github.com/swaywm/sway.git
synced 2024-11-16 05:03:17 +00:00
Fix damage issue when moving and resizing
This commit is contained in:
parent
2c6616050a
commit
f9491c9584
|
@ -463,11 +463,12 @@ static void output_damage_whole_container_iterator(struct sway_container *con,
|
||||||
|
|
||||||
void output_damage_whole_container(struct sway_output *output,
|
void output_damage_whole_container(struct sway_output *output,
|
||||||
struct sway_container *con) {
|
struct sway_container *con) {
|
||||||
|
// Pad the box by 1px, because the width is a double and might be a fraction
|
||||||
struct wlr_box box = {
|
struct wlr_box box = {
|
||||||
.x = con->current.swayc_x - output->wlr_output->lx,
|
.x = con->current.swayc_x - output->wlr_output->lx - 1,
|
||||||
.y = con->current.swayc_y - output->wlr_output->ly,
|
.y = con->current.swayc_y - output->wlr_output->ly - 1,
|
||||||
.width = con->current.swayc_width,
|
.width = con->current.swayc_width + 2,
|
||||||
.height = con->current.swayc_height,
|
.height = con->current.swayc_height + 2,
|
||||||
};
|
};
|
||||||
scale_box(&box, output->wlr_output->scale);
|
scale_box(&box, output->wlr_output->scale);
|
||||||
wlr_output_damage_add_box(output->damage, &box);
|
wlr_output_damage_add_box(output->damage, &box);
|
||||||
|
|
Loading…
Reference in a new issue