From 245f8390a513be6865dfaba7ab42a1a0daf302c6 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 8 Sep 2002 23:47:03 +0000 Subject: workspace specific removal --- src/Window.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 1768509..aeaad5e 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.81 2002/09/08 20:06:58 fluxgen Exp $ +// $Id: Window.cc,v 1.82 2002/09/08 23:47:03 fluxgen Exp $ #include "Window.hh" @@ -344,10 +344,12 @@ FluxboxWindow::~FluxboxWindow() { XUngrabPointer(display, CurrentTime); } - if (iconic) + if (!iconic) { + Workspace *workspace = screen->getWorkspace(workspace_number); + if (workspace) + workspace->removeWindow(this); + } else //it's iconic screen->removeIcon(this); - - screen->removeWindow(this); if (windowmenu) { delete windowmenu; -- cgit v0.11.2