diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-15 00:43:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-15 00:43:23 +0200 |
commit | cef36a1f7c90dba57de53de1fa9fd091e304c833 (patch) | |
tree | 4c2fc7cb5cb85cc7137af3b3a79806b9c70c3a8c /src | |
parent | 39609fe195fa0499239b7041866355a4e467f21a (diff) |
Process related media window events even if hidden
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 287c911..9adbc22 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1440,7 +1440,9 @@ namespace QuickMedia { } } - while(related_media_window && related_media_window_visible && related_media_window->pollEvent(event)) { + while(related_media_window && related_media_window->pollEvent(event)) { + if(!related_media_window_visible) + continue; if(event.type == sf::Event::KeyPressed) { if(event.key.code == sf::Keyboard::Up) { related_media_body->select_previous_item(); |