X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWindow.cc;h=6131ec4917b21524ac73a5c1635aa40ed70a5e3e;hb=28594da6de001f1d8b6b975286032302db3a6491;hp=b13002d6ae2a86a19d49e1d85602a6efdbf6098f;hpb=be306f6b603036ecb5d71675b6ef48324f565a73;p=chaz%2Fopenbox diff --git a/src/Window.cc b/src/Window.cc index b13002d6..6131ec49 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -347,6 +347,10 @@ BlackboxWindow::~BlackboxWindow(void) { if (flags.moving) endMove(); + delete timer; + + delete windowmenu; + if (client.window_group) { BWindowGroup *group = blackbox->searchGroup(client.window_group); if (group) group->removeWindow(this); @@ -357,18 +361,9 @@ BlackboxWindow::~BlackboxWindow(void) { if (client.transient_for != (BlackboxWindow *) ~0ul) { client.transient_for->client.transientList.remove(this); } - // we save our transient_for though because the workspace will use it - // when determining the next window to get focus + client.transient_for = (BlackboxWindow*) 0; } - if (blackbox_attrib.workspace != BSENTINEL && - window_number != BSENTINEL) - screen->getWorkspace(blackbox_attrib.workspace)->removeWindow(this); - else if (flags.iconic) - screen->removeIcon(this); - - client.transient_for = (BlackboxWindow*) 0; - if (client.transientList.size() > 0) { // reset transient_for for all transients BlackboxWindowList::iterator it, end = client.transientList.end(); @@ -377,10 +372,6 @@ BlackboxWindow::~BlackboxWindow(void) { } } - delete timer; - - delete windowmenu; - if (frame.title) destroyTitlebar(); @@ -2990,7 +2981,7 @@ void BlackboxWindow::doMove(int x_root, int y_root) { /* If the XWarpPointer is done after the configure, we can end up grabbing another window, so made sure you do it first. - */ + */ int dest_x; if (x_root <= 0) { dest_x = screen->getRect().right() - 1;