reconfigure fix (setFocusedWindow didn't check if win already focused)

This commit is contained in:
rathnor 2003-04-29 12:39:45 +00:00
parent c8acedf1a8
commit 6b125d1c60
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day)
Changes for 0.9.2:
*03/04/29:
* fix cause of (some?) excessive reconfigures (Simon)
fluxbox.cc
* fix fbsetbg relative path bug + simplify (Han)
util/fbsetbg
* Added FbDrawable.hh/cc (Henrik)

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: fluxbox.cc,v 1.124 2003/04/28 13:34:38 rathnor Exp $
// $Id: fluxbox.cc,v 1.125 2003/04/29 12:39:45 rathnor Exp $
#include "fluxbox.hh"
@ -2220,6 +2220,8 @@ void Fluxbox::timeout() {
// set focused window
void Fluxbox::setFocusedWindow(FluxboxWindow *win) {
// already focused
if (m_focused_window == win) return;
BScreen *old_screen = 0, *screen = 0;
FluxboxWindow *old_win = 0;
Toolbar *old_tbar = 0, *tbar = 0;