aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-01 12:06:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-01 12:06:00 +0000
commitb6f8a2e422fe05c1c1e63d39f72857d4c480bc7c (patch)
tree46195edf4e7971344eddddb1fe8685e27f66f6a5 /search.c
parentrender: search: add todo to only position sub-surface on a window resize (diff)
search: enable/disable weston sub-surface desync quirk when rendering search box
Diffstat (limited to 'search.c')
-rw-r--r--search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.c b/search.c
index 1c5d8e71..f81ce6c6 100644
--- a/search.c
+++ b/search.c
@@ -79,12 +79,12 @@ search_begin(struct terminal *term)
win->search_sub_surface = wl_subcompositor_get_subsurface(
wayl->sub_compositor, win->search_surface, win->surface);
- wl_subsurface_set_desync(win->search_sub_surface);
struct wl_region *region = wl_compositor_create_region(term->wl->compositor);
wl_region_add(region, 0, 0, INT32_MAX, INT32_MAX);
wl_surface_set_opaque_region(win->search_surface, region);
wl_region_destroy(region);
+ wl_subsurface_set_sync(win->search_sub_surface);
term->search.original_view = term->grid->view;
term->search.view_followed_offset = term->grid->view == term->grid->offset;