From f4600f4b3f62b2e244d4fbe5fa0d11f866511cdb Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Wed, 21 Nov 2007 13:36:58 +0000 Subject: [PATCH] Properly initialize Scene::Window pointers in EffectWindow objects. svn path=/trunk/KDE/kdebase/workspace/; revision=739644 --- scene_opengl.cpp | 1 + scene_xrender.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index ab4d604c37..86948c2819 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -701,6 +701,7 @@ void SceneOpenGL::windowAdded( Toplevel* c ) { assert( !windows.contains( c )); windows[ c ] = new Window( c ); + c->effectWindow()->setSceneWindow( windows[ c ]); } void SceneOpenGL::windowClosed( Toplevel* c, Deleted* deleted ) diff --git a/scene_xrender.cpp b/scene_xrender.cpp index 3d94dc309f..0b37b85cb9 100644 --- a/scene_xrender.cpp +++ b/scene_xrender.cpp @@ -316,6 +316,7 @@ void SceneXrender::windowAdded( Toplevel* c ) { assert( !windows.contains( c )); windows[ c ] = new Window( c ); + c->effectWindow()->setSceneWindow( windows[ c ]); } // Convert QRegion to XserverRegion. This code uses XserverRegion