[PATCH] Ghost Shadows

Malte Starostik malte at kde.org
Tue Oct 8 04:23:11 BST 2002


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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qapplication_x11.diff
Type: text/x-diff
Size: 637 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021008/d7a94d07/attachment.diff>


More information about the kde-core-devel mailing list