mirror of https://github.com/mpv-player/mpv
wayland: also log refresh rate on surface entrance
Never bothered to log this for some reason, but it's pretty convenient when debugging.
This commit is contained in:
parent
ba20f60add
commit
d3a61cfe98
|
@ -756,8 +756,8 @@ static void surface_handle_enter(void *data, struct wl_surface *wl_surface,
|
||||||
if (!mp_rect_equals(&old_geometry, &wl->geometry) || force_resize)
|
if (!mp_rect_equals(&old_geometry, &wl->geometry) || force_resize)
|
||||||
wl->pending_vo_events |= VO_EVENT_RESIZE;
|
wl->pending_vo_events |= VO_EVENT_RESIZE;
|
||||||
|
|
||||||
MP_VERBOSE(wl, "Surface entered output %s %s (0x%x), scale = %i\n", o->make,
|
MP_VERBOSE(wl, "Surface entered output %s %s (0x%x), scale = %i, refresh rate = %f Hz\n",
|
||||||
o->model, o->id, wl->scaling);
|
o->make, o->model, o->id, wl->scaling, o->refresh_rate);
|
||||||
|
|
||||||
wl->pending_vo_events |= VO_EVENT_WIN_STATE;
|
wl->pending_vo_events |= VO_EVENT_WIN_STATE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue