From 8d4a6d5181aff0f0ca87b9709da7b4fba842f30e Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 8 Nov 2007 18:35:57 +0000 Subject: one more fix --- src/FocusControl.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/FocusControl.cc b/src/FocusControl.cc index 8e6b895..7bc1db4 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc @@ -435,31 +435,31 @@ void FocusControl::removeClient(WinClient &client) { if (client.screen().isShuttingdown()) return; - m_focused_list.remove(&client); - m_creation_order_list.remove(&client); - client.screen().clientListSig().notify(); - if (m_cycling_list && m_cycling_window != m_cycling_list->end() && *m_cycling_window == &client) { m_cycling_window = m_cycling_list->end(); stopCyclingFocus(); } else if (m_cycling_last == &client) m_cycling_last = 0; + + m_focused_list.remove(&client); + m_creation_order_list.remove(&client); + client.screen().clientListSig().notify(); } void FocusControl::removeWindow(Focusable &win) { if (win.screen().isShuttingdown()) return; - m_focused_win_list.remove(&win); - m_creation_order_win_list.remove(&win); - win.screen().clientListSig().notify(); - if (m_cycling_list && m_cycling_window != m_cycling_list->end() && *m_cycling_window == &win) { m_cycling_window = m_cycling_list->end(); stopCyclingFocus(); } + + m_focused_win_list.remove(&win); + m_creation_order_win_list.remove(&win); + win.screen().clientListSig().notify(); } void FocusControl::shutdown() { -- cgit v0.11.2