Merge branch 'x11-expose-resend' into 'master'

Draft: backend/x11: re-send last buffer on expose event

See merge request wlroots/wlroots!4312
This commit is contained in:
Simon Ser 2026-01-13 05:12:56 +00:00
commit 2e622b1a83
3 changed files with 81 additions and 27 deletions

View file

@ -68,10 +68,7 @@ static void handle_x11_event(struct wlr_x11_backend *x11,
struct wlr_x11_output *output =
get_x11_output_from_window_id(x11, ev->window);
if (output != NULL) {
pixman_region32_union_rect(
&output->exposed, &output->exposed,
ev->x, ev->y, ev->width, ev->height);
wlr_output_update_needs_frame(&output->wlr_output);
handle_x11_expose_event(output, ev);
}
break;
}