1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-05-25 08:56:13 +02:00

wayland: don't chomp dirty state when window is pending

Running `printf "foo\nbar\n" | bemenu --filter foo` no results would
show up until something set the dirty state (like interacting with the
keyboard, e.g. deleting a character).

This would only happen on wayland, due to the render implementation not
considering the dirty state when the window was not yet created and then
just overwriting `menu->dirty` with `false`.

Signed-off-by: Robert Günzler <r@gnzler.io>
This commit is contained in:
Robert Günzler 2022-12-15 22:07:17 +01:00 committed by Jari Vetoniemi
parent a295e24146
commit 778617e7c9

View File

@ -54,7 +54,8 @@ schedule_windows_render_if_dirty(struct bm_menu *menu, struct wayland *wayland)
// be(re)created. We need to do the render ASAP (not schedule it) because otherwise,
// since we lack a window, we may not receive further events and will get deadlocked
render_windows_if_pending(menu, wayland);
} else if (menu->dirty) {
}
if (menu->dirty) {
bm_wl_window_schedule_render(window);
}
}