KDE/kdebase/workspace/plasma/applets/systemtray

Jason Stubbs jasonbstubbs at gmail.com
Thu Aug 7 15:30:43 CEST 2008


One thing to note here is that this change is not source compatible with 
qt-4.4.0. The attached patch (on top of this one) fixes that. Should this go 
into trunk as well?


On Thursday 07 August 2008 22:04:51 JST, Jason Stubbs wrote:
> SVN commit 843619 by jstubbs:
>
> Revert to Qt-4.4.0 behaviour so that the SystemTrayWidget is always on top.
> This needs to be backported to the 4.1 branch.
>
> BUG: 168007
> CCMAIL: plasma-devel at kde.org
>
>
>  M  +14 -0     systemtray.cpp
>
>
> --- trunk/KDE/kdebase/workspace/plasma/applets/systemtray/systemtray.cpp
> #843618:843619 @@ -24,6 +24,7 @@
>  #include "systemtray.h"
>
>  // Qt
> +#include <QApplication>
>  #include <QGraphicsView>
>  #include <QTimer>
>
> @@ -37,6 +38,19 @@
>        m_startUpDelayShowTimer(0),
>        m_showOwnBackground(false)
>  {
> +    // Revert to Qt-4.4.0 behaviour so that the SystemTrayWidget is always
> on +    // top. Note, if a sibling widget requires a native window for
> other +    // reasons the problem could reoccur.
> +    // Another alternative is to raise() during SystemTrayWidget
> construction +    // and then have it listen for ChildAdded events on its
> parent. However, +    // this causes a lot of flashes of white and so
> should be avoided if +    // possible.
> +    // See http://bugs.kde.org/show_bug.cgi?id=168007
> +    // and
> http://mail.kde.org/pipermail/plasma-devel/2008-August/000258.html +    if
> (!QApplication::testAttribute(Qt::AA_DontCreateNativeWidgetSiblings)) { +  
>      QApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); +  
>  }
> +
>      m_background = new Plasma::PanelSvg(this);
>      m_background->setImagePath("widgets/systemtray");
>  }
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel



-- 
Jason Stubbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtverhack.patch
Type: text/x-diff
Size: 821 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080807/8ab0d517/attachment.bin 


More information about the Plasma-devel mailing list