aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-24 10:04:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-24 10:04:06 +0000
commit2cbcfb315909969c126f9fd322c68236151a17e7 (patch)
tree5b22880f81aa758aba629236c48222f906c25f48
parentsearch: fix debug log (diff)
render: fix refresh logic of pending csd|search|url
Our CSDs, the search-box and URL labels are all implemented using sub-surfaces, synchronized with the main grid. This means we *must* commit the main surface as well, when updating one of these sub-surfaces. The logic for doing so in the frame callback was flawed, and only triggered when the main grid was actually dirty. That is, e.g. search box updates that did not also resulted in grid updates (for example - pasting a search criteria that doesn’t match), did not result in a UI refresh. Closes #1040
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index 31d5a61f..27f21bd5 100644
--- a/render.c
+++ b/render.c
@@ -3572,7 +3572,7 @@ frame_callback(void *data, struct wl_callback *wl_callback, uint32_t callback_da
if (urls)
render_urls(term);
- if (grid && (!term->delayed_render_timer.is_armed | csd | search | urls))
+ if ((grid && !term->delayed_render_timer.is_armed) || (csd | search | urls))
grid_render(term);
tll_foreach(term->wl->seats, it) {