From 09cd1c9580bed978cedef42bc57b3220eac540a2 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 10 Sep 2002 16:46:15 +0000 Subject: tab disconnect --- src/Window.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index 34eee3d..d5ba53c 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.83 2002/09/10 10:55:34 fluxgen Exp $ +// $Id: Window.cc,v 1.84 2002/09/10 16:46:15 fluxgen Exp $ #include "Window.hh" @@ -3601,6 +3601,10 @@ void FluxboxWindow::changeBlackboxHints(BaseDisplay::BlackboxHints *net) { if ((net->flags & BaseDisplay::ATTRIB_WORKSPACE) && (workspace_number != net->workspace)) { + + if (getTab()) // disconnect from tab chain before sending it to another workspace + getTab()->disconnect(); + screen->reassociateWindow(this, net->workspace, true); if (screen->getCurrentWorkspaceID() != net->workspace) -- cgit v0.11.2