mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 03:32:50 +00: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:
parent
b3ef506932
commit
602995fd40
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user