From: Dana Jansens Date: Tue, 7 Jan 2003 06:24:40 +0000 (+0000) Subject: dont unset focused client if it is still/already set, that causes bugs! X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6c3aec9e0996d2957855c188b5ff60bf4bc628fa;p=chaz%2Fopenbox dont unset focused client if it is still/already set, that causes bugs! --- diff --git a/src/screen.cc b/src/screen.cc index eddda8df..a403fa13 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -656,7 +656,8 @@ void OBScreen::changeDesktop(long desktop) } // force the callbacks to fire - Openbox::instance->setFocusedClient(0); + if (!Openbox::instance->focusedClient()) + Openbox::instance->setFocusedClient(0); } void OBScreen::changeNumDesktops(long num)