~adnano/wmenu-devel

Drop render_frame on surface_enter v1 APPLIED

Mykyta Holubakha: 2
 Drop render_frame on surface_enter
 Render after reading stdin

 2 files changed, 1 insertions(+), 1 deletions(-)
Nevermind, I get it now. Thanks!

To git@git.sr.ht:~adnano/wmenu
   9ee9da3..eca2532  master -> master
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~adnano/wmenu-devel/patches/42623/mbox | git am -3
Learn more about email & git

[PATCH 1/2] Drop render_frame on surface_enter Export this patch

---
 main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/main.c b/main.c
index bfa5e62..99620fd 100644
--- a/main.c
+++ b/main.c
@@ -411,7 +411,6 @@ static void surface_enter(void *data, struct wl_surface *surface,
		struct wl_output *wl_output) {
	struct menu_state *state = data;
	state->output = wl_output_get_user_data(wl_output);
	render_frame(state);
}

static const struct wl_surface_listener surface_listener = {
-- 
2.41.0

[PATCH 2/2] Render after reading stdin Export this patch

This allows seeing option list without doing any input, like in original dmenu.
---
 main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.c b/main.c
index 99620fd..f430087 100644
--- a/main.c
+++ b/main.c
@@ -1166,6 +1166,7 @@ int main(int argc, char **argv) {

	read_stdin(&state);
	match(&state);
	render_frame(&state);

	struct pollfd fds[] = {
		{ wl_display_get_fd(state.display), POLLIN },
-- 
2.41.0
Nevermind, I get it now. Thanks!

To git@git.sr.ht:~adnano/wmenu
   9ee9da3..eca2532  master -> master