From 69c7d9a20d6f2a03541c7876c8bf7747f70e80fb Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Thu, 19 Jun 2008 11:36:55 +0000 Subject: [PATCH] Fix for 237755: macro exploration sticky popup vanishing too early on Linux/GTK --- .../ui/text/AbstractSourceViewerInformationControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/AbstractSourceViewerInformationControl.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/AbstractSourceViewerInformationControl.java index cb06020fab7..83f82b0a143 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/AbstractSourceViewerInformationControl.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/AbstractSourceViewerInformationControl.java @@ -438,7 +438,8 @@ public abstract class AbstractSourceViewerInformationControl extends PopupDialog * {@inheritDoc} */ public boolean isFocusControl() { - return fSourceViewer.getTextWidget().isFocusControl(); + final Shell shell = getShell(); + return shell.getDisplay().getActiveShell() == shell; } /**