From 54317a01037fe203b6f202bd6cc63f33a234cd5c Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 8 Nov 2007 02:06:33 +0000 Subject: fix problem with stuck windows from previous patch --- src/Screen.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 720efed..e618216 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -1218,8 +1218,7 @@ void BScreen::changeWorkspaceID(unsigned int id) { } // reassociate all windows that are stuck to the new workspace - Workspace *wksp = currentWorkspace(); - Workspace::Windows wins = wksp->windowList(); + Workspace::Windows wins = old->windowList(); Workspace::Windows::iterator it = wins.begin(); for (; it != wins.end(); ++it) { if ((*it)->isStuck()) { -- cgit v0.11.2