diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-22 00:32:08 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-22 00:32:08 +0100 |
commit | 52bc7111147dd3e87e4bf0ae57241c2b81892f78 (patch) | |
tree | 412791c6236577f0a18494f3ac21c67419c1b5b1 /src | |
parent | cdfda3436aa96134797f6f1c45d76227770f1f4b (diff) |
Keep video player fullscreened when changing to the next video
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 1 | ||||
-rw-r--r-- | src/VideoPlayer.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 074f3e9..6f089be 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3439,6 +3439,7 @@ namespace QuickMedia { startup_args.plugin_name = plugin_name; startup_args.cache_on_disk = !video_page->is_local(); startup_args.referer = video_info.referer; + startup_args.fullscreen = window_is_fullscreen(disp, window.get_system_handle()); video_player = std::make_unique<VideoPlayer>(std::move(startup_args), video_event_callback, on_window_create); VideoPlayer::Error err = video_player->load_video(); diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 28da43d..4a50f79 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -215,6 +215,9 @@ namespace QuickMedia { fprintf(stderr, "Wayland detected. Launching mpv in x11egl mode\n"); } + if(startup_args.fullscreen) + args.push_back("--fs=yes"); + if(startup_args.keep_open) args.push_back("--keep-open=yes"); |