diff options
author | fluxgen <fluxgen> | 2002-09-08 23:47:03 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-09-08 23:47:03 (GMT) |
commit | 245f8390a513be6865dfaba7ab42a1a0daf302c6 (patch) | |
tree | c511c9c85e1de12eab1bdf13f9de29c6aeec5e8a | |
parent | dd02663c7d613912c6f2de12ab38b3fe48acdbd5 (diff) | |
download | fluxbox-245f8390a513be6865dfaba7ab42a1a0daf302c6.zip fluxbox-245f8390a513be6865dfaba7ab42a1a0daf302c6.tar.bz2 |
workspace specific removal
-rw-r--r-- | src/Window.cc | 10 |
1 files 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 @@ | |||
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: Window.cc,v 1.81 2002/09/08 20:06:58 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.82 2002/09/08 23:47:03 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -344,10 +344,12 @@ FluxboxWindow::~FluxboxWindow() { | |||
344 | XUngrabPointer(display, CurrentTime); | 344 | XUngrabPointer(display, CurrentTime); |
345 | } | 345 | } |
346 | 346 | ||
347 | if (iconic) | 347 | if (!iconic) { |
348 | Workspace *workspace = screen->getWorkspace(workspace_number); | ||
349 | if (workspace) | ||
350 | workspace->removeWindow(this); | ||
351 | } else //it's iconic | ||
348 | screen->removeIcon(this); | 352 | screen->removeIcon(this); |
349 | |||
350 | screen->removeWindow(this); | ||
351 | 353 | ||
352 | if (windowmenu) { | 354 | if (windowmenu) { |
353 | delete windowmenu; | 355 | delete windowmenu; |