mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
render: search: mark visible portion of sub-surface opaque
This commit is contained in:
parent
7b1dafae0f
commit
b8d79c719b
3 changed files with 47 additions and 0 deletions
7
render.c
7
render.c
|
|
@ -1220,6 +1220,13 @@ render_search_box(struct terminal *term)
|
|||
wl_surface_damage_buffer(term->window->search_surface, 0, 0, width, height);
|
||||
wl_surface_set_buffer_scale(term->window->search_surface, scale);
|
||||
|
||||
struct wl_region *region = wl_compositor_create_region(term->wl->compositor);
|
||||
if (region != NULL) {
|
||||
wl_region_add(region, width - visible_width, 0, visible_width, height);
|
||||
wl_surface_set_opaque_region(term->window->search_surface, region);
|
||||
wl_region_destroy(region);
|
||||
}
|
||||
|
||||
wl_surface_commit(term->window->search_surface);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue