[PATCH] Ghost Shadows

Malte Starostik malte at kde.org
Tue Oct 8 04:54:31 BST 2002


On Tuesday 08 October 2002 05:33, Malte Starostik wrote:
> On Tuesday 08 October 2002 05:23, Malte Starostik wrote:
> > On Saturday 05 October 2002 11:45, Till Krech wrote:
> > > Hi,
> >
> > [snip]
> >
> > > The problem is that the QPopupmenu gets two QEvent:Show events.
> >
> > This modification to qapplication_x11.cpp introduced the double show
> > events: case MapNotify:                            // window shown
> > -       if ( widget->isTopLevel() && !widget->isVisible()
> > -            && !widget->isHidden() ) {     widget->setWState(
> > WState_Visible );
> > -           widget->sendShowEventsToChildren( TRUE );
> > +       if ( widget->isTopLevel() ) {
> > +           widget->showChildren( TRUE );
> >             QShowEvent e;
> >             QApplication::sendSpontaneousEvent( widget, &e );
> >         }
> >
> >  Attached patch tries to fix it, but I'm not too sure about the
> > implications. Could it be that this part of the condition was removed
> > accidentally?
>
> Sorry, a bit too fast. The && !widget->isHidden() part seems needed as
> well, after readding it, the spurious show events after hiding popup menus
> disappear as well.
Again sorry, very last attempt now. It's too early in the morning. Both prior 
suggestions are crap, they break toolbars. I really hope this one is better 
now.

-Malte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qapplication_x11.diff
Type: text/x-diff
Size: 723 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021008/b14a916d/attachment.diff>


More information about the kde-core-devel mailing list