Finally *robust* focus management for KwinGrid ... jay :-)
g0dil [Sat, 28 Oct 2006 11:42:32 +0000 (11:42 +0000)]
kwingrid.cc

index a200e37..e984d27 100644 (file)
@@ -196,7 +196,9 @@ std::ostream& operator<<(std::ostream& os, QSize s)
 
 void KWinGrid::initGeometry(int __forceScreen)
 {
-    activeWindow_ = activeWindow();
+    activeWindowChanged(0);
+    if (activeWindow_ == 0)
+       activeWindow_ = activeWindow();
     if (activeWindow_) {
        KWin::WindowInfo info(KWin::windowInfo(activeWindow_));
        inner_ = info.geometry();