diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-04 12:11:46 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-04 12:11:46 +0100 |
commit | db8ff2f73dd2f8a16f547d8f397753dee64341c9 (patch) | |
tree | 51896cdd33fa78d97ca929d94e4bbc640a9ccd2c /src | |
parent | b6b972e2dae816a8f0686f4986029a5ed50e592c (diff) |
Video player: fix cursor hiding when not moving, unset fullscreen after going back after recommendation page
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index bd19f2a..f009cdd 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1869,6 +1869,8 @@ namespace QuickMedia { }); if(page_changed) { + if(fullscreen) + window_set_fullscreen(disp, window.getSystemHandle(), WindowFullscreenState::UNSET); current_page = previous_page; return; } else { @@ -1919,7 +1921,6 @@ namespace QuickMedia { save_recommendations_from_related_videos(video_url, video_title, related_videos); } -#if 0 if(video_player_window) { if(!cursor_visible) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); @@ -1933,9 +1934,6 @@ namespace QuickMedia { } } std::this_thread::sleep_for(std::chrono::milliseconds(50)); - #endif - window.clear(back_color); - window.display(); } window.setMouseCursorVisible(true); |