Render frame on surface enter
This ensures that the menu is rendered with the correct scale. Fixes #14
This commit is contained in:
parent
3ad4b5ca3f
commit
e2542d34ed
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ static void noop() {
|
|||
static void surface_enter(void *data, struct wl_surface *surface, struct wl_output *wl_output) {
|
||||
struct wl_context *context = data;
|
||||
context->output = wl_output_get_user_data(wl_output);
|
||||
menu_render_items(context->menu);
|
||||
}
|
||||
|
||||
static const struct wl_surface_listener surface_listener = {
|
||||
|
|
Loading…
Add table
Reference in a new issue