>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

Jean-Marc> Here is a different idea: it may be that no windows is
Jean-Marc> active (dialog closed, but not yet focus to the main
Jean-Marc> window).

Jean-Marc> Does this patch do something useful?

Probably not. This should be better.

JMarc

Index: src/frontends/qt2/QtView.C
===================================================================
--- src/frontends/qt2/QtView.C	(revision 13949)
+++ src/frontends/qt2/QtView.C	(working copy)
@@ -149,7 +149,7 @@ void QtView::activated(FuncRequest const
 
 bool QtView::hasFocus() const
 {
-	return qApp->activeWindow() == this;
+	return !qApp->activeWindow() || qApp->activeWindow() == this;
 }
 
 

Reply via email to