~adnano/wmenu-devel

wmenu: Fix buffer size not divisible by scale v1 SUPERSEDED

Adnan Maolood: 1
 Fix buffer size not divisible by scale

 1 files changed, 1 insertions(+), 2 deletions(-)
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/38603/mbox | git am -3
Learn more about email & git

[PATCH wmenu] Fix buffer size not divisible by scale Export this patch

---
 main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 31fed7e..6f27e48 100644
--- a/main.c
+++ b/main.c
@@ -411,8 +411,6 @@ static void surface_enter(void *data, struct wl_surface *surface,
	struct menu_state *state = data;
	state->output = wl_output_get_user_data(wl_output);
	wl_surface_set_buffer_scale(state->surface, state->output->scale);
	wl_surface_commit(state->surface);
	render_frame(state);
}

static const struct wl_surface_listener surface_listener = {
@@ -1167,6 +1165,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 },

base-commit: a362f0ac498e030217b762d6c6717399f298acea
-- 
2.39.1