bemenu/lib
Joan Bruguera 6e74133876 Fix first render on Wayland after loading items with --grab
Currently, on the Wayland backend, the following command:
    { echo one; sleep 1; echo two; } | BEMENU_BACKEND=wayland bemenu --grab
Will keep showing the 'Loading...' text even after all items are available.
The items will only be shown after some input, e.g. a key press, happens.

This was a regression introduced by 5a095705d2
(versions 0.6.5+). A dirty flag was added to avoid unnecessary redraws,
however, this flag is not reset between the renders before/after the items are
loaded, so the bm_menu_render call after the items are loaded is ignored
(on Wayland, which is the only renderer that currently uses the dirty flag).

Fix the issue by setting the dirty flag when the filter changes, so it will be
reset when changing from "Loading..." to empty and cause a redraw.
2022-06-30 09:40:08 +09:00
..
3rdparty Nuke CMake from existance 2020-02-07 16:03:08 +02:00
renderers Add option to define a border and border color 2022-06-29 15:13:09 +09:00
bemenu.h Add option to define a border and border color 2022-06-29 15:13:09 +09:00
filter.c Declare filter_dmenu_fun as static 2020-12-13 17:10:07 +09:00
internal.h Add option to define a border and border color 2022-06-29 15:13:09 +09:00
item.c Refactor code to snake_style, turn renderers into plugins, and start 2014-10-22 22:46:51 +03:00
library.c Nuke CMake from existance 2020-02-07 16:03:08 +02:00
list.c Use sizeof(void*) and fix list remove. 2014-10-25 21:53:48 +03:00
menu.c Fix first render on Wayland after loading items with --grab 2022-06-30 09:40:08 +09:00
util.c get rid of all the internal symbols 2022-02-19 08:00:26 +09:00