From efa28b23f562be85fdd2b9ab12001d91126af70c Mon Sep 17 00:00:00 2001 From: Philip Falkner Date: Fri, 30 Mar 2007 17:15:48 +0000 Subject: [PATCH] Don't crash when activating a window on another desktop. svn path=/branches/work/kwin_composite/; revision=648171 --- effects/presentwindows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index fc695c5e4b..caf42e89e2 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -141,6 +141,9 @@ void PresentWindowsEffect::windowInputMouseEvent( Window w, QEvent* e ) if( it.value().area.contains(pos) ) { effects->activateWindow( it.key()->effectWindow()); + // mWindowData gets cleared and rebuilt when a window is + // activated, so it's dangerous (and unnecessary) to continue + break; } }