From 589bc5b1694a355ad92b17048f5b5ee9b45d24d2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 15 Aug 2019 05:07:58 +0200 Subject: Show/hide cursor when video player seekable bar shows/hides --- src/QuickMedia.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 1a1cbff..73e44b9 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -588,6 +588,7 @@ namespace QuickMedia { if(!ui_visible) { ui_visible = true; video_player_ui_window->setVisible(true); + window.setMouseCursorVisible(true); } } } @@ -630,6 +631,7 @@ namespace QuickMedia { if(ui_hide_timer.getElapsedTime().asMilliseconds() > UI_HIDE_TIMEOUT) { ui_visible = false; video_player_ui_window->setVisible(false); + window.setMouseCursorVisible(false); } const float ui_height = window_size.y * 0.025f; @@ -661,6 +663,7 @@ namespace QuickMedia { video_player_ui_window.reset(); window_set_fullscreen(disp, window.getSystemHandle(), WindowFullscreenState::UNSET); + window.setMouseCursorVisible(true); } enum class TrackMediaType { -- cgit v1.2.3