fix crash on window attach - triggered when attaching from the focused window later unfocusing that window would die since it had no client. Now we make sure we remove all references from the fluxbox Window->FluxboxWindow list first
rathnor rathnor
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.187 2003/05/26 04:24:24 rathnor Exp $ +// $Id: Window.cc,v 1.188 2003/06/06 14:45:13 rathnor Exp $ #include "Window.hh"@@ -298,6 +298,9 @@ screen().hideGeometry();
XUngrabPointer(display, CurrentTime); } + // no longer a valid window to do stuff with + Fluxbox::instance()->removeWindowSearch(frame().window().window()); + Client2ButtonMap::iterator it = m_labelbuttons.begin(); Client2ButtonMap::iterator it_end = m_labelbuttons.end(); for (; it != it_end; ++it) {@@ -321,7 +324,7 @@ while (!m_clientlist.empty()) {
detachClient(*m_clientlist.back()); } } - Fluxbox::instance()->removeWindowSearch(frame().window().window()); + #ifdef DEBUG cerr<<__FILE__<<"("<<__LINE__<<"): ~FluxboxWindow("<<this<<")"<<endl; #endif // DEBUG