diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-15 05:07:58 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-15 05:08:01 +0200 |
commit | 589bc5b1694a355ad92b17048f5b5ee9b45d24d2 (patch) | |
tree | abd1c3d83c7063f9b063e38984a1fad8c3318de8 | |
parent | c48313e5233028f520f92bf789ea287ddfc63ee7 (diff) |
Show/hide cursor when video player seekable bar shows/hides
-rw-r--r-- | src/QuickMedia.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |