From 6e2b4f4bdd36844721f50b71d0cbc159363ba25f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 21 Apr 2017 23:44:43 +0200 Subject: Distinguish between widget and window wrt. visible(). --- plugingui/eventhandler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugingui/eventhandler.cc') 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(); -- cgit v1.2.3