summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc10
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;