On Wed, 14 Oct 2009 21:19:58 -0400, Mikhail <[email protected]> wrote: > Hi there, > > As you probably know there is an undesired behavior of auto-complete > popup window on Linux when using GNOME: it appears for a moment and then > disappears immediately. I've investigated this behavior with several > distros/DEs with the last version of QScintilla: > > Debian Lenny (Qt 4.4, KDE 3.5, GNOME 2.22): > * works in KDE with KWin, doesn't work in KDE with Compiz > * doesn't work in GNOME with either Metacity or Compiz > > Ubuntu 9.04 (Qt 4.5, KDE 4.2, GNOME 2.26): > * works in KDE with KWin, didn't try in KDE with Compiz > * doesn't work in GNOME with either Metacity or Compiz > > After applying the following patch: > > --- Qt4/SciClasses.cpp (original) > +++ Qt4/SciClasses.cpp (patched) > @@ -128,7 +128,7 @@ > SciListBox::SciListBox(QWidget *parent, ListBoxQt *lbx_) > : QListWidget(parent), lbx(lbx_) > { > - setWindowFlags(Qt::Tool|Qt::FramelessWindowHint); > + setWindowFlags(Qt::ToolTip|Qt::WindowStaysOnTopHint); > setAttribute(Qt::WA_StaticContents); > > setFocusProxy(parent); > > it works perfectly in all listed distros/DEs, as well as in Windows > (tried WinXP).
Thanks for putting the effort into this. I'll try it on MacOS. I'd be interested in hearing any good/bad results from this change. It's always been a problem finding a fix that doesn't break currently working environments. Phil _______________________________________________ QScintilla mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
