Summary: | switching desktops incurrs (seemingly) unrequired cpu load | ||
---|---|---|---|
Product: | kdesktop | Reporter: | Daniel Quinn <expendable.0> |
Component: | general | Assignee: | David Faure <faure> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | finex, thiago |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Daniel Quinn
2004-02-05 16:27:00 UTC
Simply don't use transparency, it relies on bad hacks. if it's just a bunch of bad hacks, why then is it included in kde? People request it. CVS commit by lunakl: Avoid attempts to repaint when virtual desktop changes and the widget is not visible anyway. CCMAIL: 74244-done@bugs.kde.org M +7 -0 krootpixmap.cpp 1.26 --- kdelibs/kdeui/krootpixmap.cpp #1.25:1.26 @@ -20,4 +20,5 @@ #include <kpixmapio.h> #include <kwinmodule.h> +#include <kwin.h> #include <kdebug.h> #include <netwm.h> @@ -159,4 +160,10 @@ bool KRootPixmap::eventFilter(QObject *, void KRootPixmap::desktopChanged( int ) { + if( !m_pWidget->isVisible()) + return; // not visible, no need to update + QWidget* widget = m_pWidget->topLevelWidget(); + if( !widget->testWFlags( WX11BypassWM ) + && !KWin::windowInfo( widget->winId(), NET::WMDesktop ).isOnCurrentDesktop()) + return; // not on current desktop -> not visible, no need to update repaint(true); } *** Bug 69640 has been marked as a duplicate of this bug. *** Bug closed. Kdesktop is no more mantained. |