From d9066553deef44a596b58e07e36b81929947a785 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 24 Sep 2003 08:23:39 +0000 Subject: [PATCH] KWin crashing on every KDE startup isn't fun.... Some info: kdeinit: kwin -session 110a000002000106431633100000023760005_1064355176_942460: /mnt/devel/kde/kdecvs/kdebase/kwin/group.cpp:537: void KWinInternal::Cli ent::addTransient(KWinInternal::Client*): Assertion `cl != this' failed. (the debug output before that includes a backtrace to _ZN12KWinInternal9Workspace21allowClientActivationEPKNS_6ClientEmbb #7 0x4141c745 in __assert_fail () #8 0x4157fdea in KWinInternal::Client::addTransient(KWinInternal::Client*) () #9 0x4157f211 in KWinInternal::Client::setTransient(unsigned long) () #10 0x4157feda in KWinInternal::Client::checkTransient(unsigned long) () #11 0x4157e7dd in KWinInternal::Workspace::checkTransients(unsigned long) () #12 0x415538f2 in KWinInternal::Workspace::addClient(KWinInternal::Client*, KWinInternal::allowed_t) () #13 0x415536e4 in KWinInternal::Workspace::createClient(unsigned long, bool) () #14 0x415721f5 in KWinInternal::Workspace::workspaceEvent(_XEvent*) () svn path=/trunk/kdebase/kwin/; revision=253509 --- group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index 0e08a5b631..0ceb2d50ac 100644 --- a/group.cpp +++ b/group.cpp @@ -534,7 +534,7 @@ Window Client::verifyTransientFor( Window new_transient_for, bool defined ) void Client::addTransient( Client* cl ) { assert( !transients_list.contains( cl )); - assert( cl != this ); + Q_ASSERT( cl != this ); transients_list.append( cl ); // kdDebug() << "ADDTRANS:" << this << ":" << cl << endl; // kdDebug() << kdBacktrace() << endl;