0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

wayland: set appid before initial surface commit

This shouldn't have mattered but apparently qtile is unable to get the
app id if you set it after the initial surface commit. Wayland is a mess
anyway so just shuffle this around so that the frame callback and
surface commit are the last things registered in vo_wayland_init. This
works around qtile and, in theory, doesn't appear to break anything
else. Fixes #10280.
This commit is contained in:
Dudemanguy 2022-06-11 10:09:00 -05:00
parent b3ef506932
commit 602995fd40

View File

@ -1905,13 +1905,13 @@ int vo_wayland_init(struct vo *vo)
wl->opts = mp_get_config_group(wl, wl->vo->global, &wayland_conf);
wl->display_fd = wl_display_get_fd(wl->display);
update_app_id(wl);
mp_make_wakeup_pipe(wl->wakeup_pipe);
wl->frame_callback = wl_surface_frame(wl->surface);
wl_callback_add_listener(wl->frame_callback, &frame_listener, wl);
wl_surface_commit(wl->surface);
update_app_id(wl);
mp_make_wakeup_pipe(wl->wakeup_pipe);
return true;
}