mirror of
https://github.com/mpv-player/mpv
synced 2025-01-06 15:10:20 +00:00
wayland: use default fullscreen method
I misunderstood how the different methods work and if we set the size accordingly to the wayland configure event then METHOD_DEFAULT is what we want.
This commit is contained in:
parent
a0f7fa4ac5
commit
dc142991f1
@ -730,7 +730,7 @@ static void vo_wayland_fullscreen (struct vo *vo)
|
|||||||
wl->window->p_width = wl->window->width;
|
wl->window->p_width = wl->window->width;
|
||||||
wl->window->p_height = wl->window->height;
|
wl->window->p_height = wl->window->height;
|
||||||
wl_shell_surface_set_fullscreen(wl->window->shell_surface,
|
wl_shell_surface_set_fullscreen(wl->window->shell_surface,
|
||||||
WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE,
|
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
|
||||||
0, fs_output);
|
0, fs_output);
|
||||||
|
|
||||||
wl->window->type = TYPE_FULLSCREEN;
|
wl->window->type = TYPE_FULLSCREEN;
|
||||||
|
Loading…
Reference in New Issue
Block a user