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:
parent
a295e24146
commit
778617e7c9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue