From: g0dil Date: Sat, 28 Oct 2006 11:42:32 +0000 (+0000) Subject: Finally *robust* focus management for KwinGrid ... jay :-) X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=eea798987e2e02beec70533a877827764af633a4;p=kwingrid.git Finally *robust* focus management for KwinGrid ... jay :-) --- diff --git a/kwingrid.cc b/kwingrid.cc index a200e37..e984d27 100644 --- a/kwingrid.cc +++ b/kwingrid.cc @@ -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();