aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-15 00:43:23 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-15 00:43:23 +0200
commitcef36a1f7c90dba57de53de1fa9fd091e304c833 (patch)
tree4c2fc7cb5cb85cc7137af3b3a79806b9c70c3a8c
parent39609fe195fa0499239b7041866355a4e467f21a (diff)
Process related media window events even if hidden
-rw-r--r--src/QuickMedia.cpp4
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();