From 6b125d1c6046ed1ec1fca92c371f3b7c39449755 Mon Sep 17 00:00:00 2001 From: rathnor Date: Tue, 29 Apr 2003 12:39:45 +0000 Subject: reconfigure fix (setFocusedWindow didn't check if win already focused) --- ChangeLog | 2 ++ src/fluxbox.cc | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b82802..10a7117 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 65defc7..1886aa0 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -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; -- cgit v0.11.2