From 2c8e8e59151d808747a4dc2fd3001154a68cd015 Mon Sep 17 00:00:00 2001 From: rathnor <rathnor> Date: Wed, 24 Sep 2003 14:26:01 +0000 Subject: fix crash when closing active window while cycling focus --- ChangeLog | 2 ++ src/Screen.cc | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 19f5dfb..5fed768 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.6: *03/09/24: + * Fix crash when closing active window while cycling focus (Simon) + Screen.cc * Fix updates to mwm_hints, and make configure request move and resize atomic (Simon) - fixes mplayer fullscreen window being moveable diff --git a/src/Screen.cc b/src/Screen.cc index b2b35ca..ade286d 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.233 2003/09/14 10:13:54 fluxgen Exp $ +// $Id: Screen.cc,v 1.234 2003/09/24 14:26:01 rathnor Exp $ #include "Screen.hh" @@ -744,6 +744,9 @@ void BScreen::removeClient(WinClient &client) { Fluxbox::instance()->revertFocus(focused->screen()); } + if (cycling_last == &client) + cycling_last = 0; + for_each(getWorkspacesList().begin(), getWorkspacesList().end(), mem_fun(&Workspace::updateClientmenu)); -- cgit v0.11.2