all repos — fluxbox @ 2fc279a5e295ebfcb28e7cc234b8f91732939dd1

custom fork of the fluxbox windowmanager

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
commit

2fc279a5e295ebfcb28e7cc234b8f91732939dd1

parent

06de965f4b8e94bfb791fc14e4f3b05b44b0c73c

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M src/Window.ccsrc/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