Render frame on surface enter

This ensures that the menu is rendered with the correct scale.

Fixes #14
This commit is contained in:
adnano 2024-12-16 10:56:51 -05:00
parent 3ad4b5ca3f
commit e2542d34ed

View file

@ -208,6 +208,7 @@ static void noop() {
static void surface_enter(void *data, struct wl_surface *surface, struct wl_output *wl_output) { static void surface_enter(void *data, struct wl_surface *surface, struct wl_output *wl_output) {
struct wl_context *context = data; struct wl_context *context = data;
context->output = wl_output_get_user_data(wl_output); context->output = wl_output_get_user_data(wl_output);
menu_render_items(context->menu);
} }
static const struct wl_surface_listener surface_listener = { static const struct wl_surface_listener surface_listener = {