summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-21 23:44:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-21 23:44:43 +0200
commit6e2b4f4bdd36844721f50b71d0cbc159363ba25f (patch)
tree5c1dfa9c266e5aa1893f200d0488426d2c24edf9 /plugingui/eventhandler.cc
parent1d7e0a638c9735d1b8a678df7f48183d046cc3e7 (diff)
Distinguish between widget and window wrt. visible().
Diffstat (limited to 'plugingui/eventhandler.cc')
-rw-r--r--plugingui/eventhandler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc
index decca01..4200d49 100644
--- a/plugingui/eventhandler.cc
+++ b/plugingui/eventhandler.cc
@@ -67,7 +67,8 @@ void EventHandler::processEvents()
bool block_interaction{false};
for(auto dialog : dialogs)
{
- if(dialog->visible())
+ // Check if the dialog nativewindow (not the contained widget) is visible
+ if(dialog->native->visible())
{
block_interaction |= dialog->isModal();
dialog->eventHandler()->processEvents();