KWin effect support for ksplashqml

This commit is contained in:
Ivan Čukić 2011-05-01 16:17:21 +02:00
parent 3db49d9882
commit 0f7f8a833e
3 changed files with 7 additions and 2 deletions

View file

@ -996,7 +996,10 @@ bool Unmanaged::shouldUnredirect() const
{
// the pixmap is needed for the login effect, a nicer solution would be the login effect increasing
// refcount for the window pixmap (which would prevent unredirect), avoiding this hack
if (resourceClass() == "ksplashx" || resourceClass() == "ksplashsimple")
if (resourceClass() == "ksplashx"
|| resourceClass() == "ksplashsimple"
|| resourceClass() == "ksplashqml"
)
return false;
// it must cover whole display or one xinerama screen, and be the topmost there
if (geometry() == workspace()->clientArea(FullArea, geometry().center(), workspace()->currentDesktop())

View file

@ -192,6 +192,7 @@ bool FadeEffect::isFadeWindow(EffectWindow* w)
e = w->data(WindowAddedGrabRole).value<void*>();
if (w->windowClass() == "ksplashx ksplashx"
|| w->windowClass() == "ksplashsimple ksplashsimple"
|| w->windowClass() == "qt-subapplication ksplashqml"
|| (e && e != this)) {
// see login effect
return false;

View file

@ -90,7 +90,8 @@ bool LoginEffect::isLoginSplash(EffectWindow* w)
// TODO there should be probably a better way (window type?)
// see also fade effect and composite.cpp
if (w->windowClass() == "ksplashx ksplashx"
|| w->windowClass() == "ksplashsimple ksplashsimple") {
|| w->windowClass() == "ksplashsimple ksplashsimple"
|| w->windowClass() == "qt-subapplication ksplashqml") {
return true;
}
return false;