From 926260e5c85326feec1681eda2b3561596f47556 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 16 Jun 2006 22:29:26 +0000 Subject: Fix crash when closing a window while cycling (Mark) --- src/FocusControl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FocusControl.cc b/src/FocusControl.cc index e92eced..ce61a4d 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc @@ -365,9 +365,10 @@ void FocusControl::removeClient(WinClient &client) { m_focused_list.remove(&client); m_creation_order_list.remove(&client); - if (cyc == &client) + if (cyc == &client) { + m_cycling_window = m_creation_order_list.end(); stopCyclingFocus(); - + } } /** -- cgit v0.11.2