summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-09-24 14:26:01 (GMT)
committerrathnor <rathnor>2003-09-24 14:26:01 (GMT)
commit2c8e8e59151d808747a4dc2fd3001154a68cd015 (patch)
treeb67f20d5d226f3f5f10bd8f2d82221d806ed33f1 /src
parentfeb7462e381b4015bc736e90da87dc7cc5711b1a (diff)
downloadfluxbox_lack-2c8e8e59151d808747a4dc2fd3001154a68cd015.zip
fluxbox_lack-2c8e8e59151d808747a4dc2fd3001154a68cd015.tar.bz2
fix crash when closing active window while cycling focus
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc5
1 files changed, 4 insertions, 1 deletions
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 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.233 2003/09/14 10:13:54 fluxgen Exp $ 25// $Id: Screen.cc,v 1.234 2003/09/24 14:26:01 rathnor Exp $
26 26
27 27
28#include "Screen.hh" 28#include "Screen.hh"
@@ -744,6 +744,9 @@ void BScreen::removeClient(WinClient &client) {
744 Fluxbox::instance()->revertFocus(focused->screen()); 744 Fluxbox::instance()->revertFocus(focused->screen());
745 } 745 }
746 746
747 if (cycling_last == &client)
748 cycling_last = 0;
749
747 for_each(getWorkspacesList().begin(), getWorkspacesList().end(), 750 for_each(getWorkspacesList().begin(), getWorkspacesList().end(),
748 mem_fun(&Workspace::updateClientmenu)); 751 mem_fun(&Workspace::updateClientmenu));
749 752