More debug functions.
svn path=/trunk/kdebase/kwin/; revision=272429
This commit is contained in:
parent
2f948d2fc0
commit
55f1a65613
2 changed files with 39 additions and 1 deletions
36
client.cpp
36
client.cpp
|
@ -1624,7 +1624,9 @@ void Client::autoRaise()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
kndbgstream& operator<<( kndbgstream& stream, const Client* cl ) { return stream; }
|
kndbgstream& operator<<( kndbgstream& stream, const Client* ) { return stream; }
|
||||||
|
kndbgstream& operator<<( kndbgstream& stream, const ClientList& ) { return stream; }
|
||||||
|
kndbgstream& operator<<( kndbgstream& stream, const ConstClientList& ) { return stream; }
|
||||||
#else
|
#else
|
||||||
kdbgstream& operator<<( kdbgstream& stream, const Client* cl )
|
kdbgstream& operator<<( kdbgstream& stream, const Client* cl )
|
||||||
{
|
{
|
||||||
|
@ -1632,6 +1634,38 @@ kdbgstream& operator<<( kdbgstream& stream, const Client* cl )
|
||||||
return stream << "\'NULL_CLIENT\'";
|
return stream << "\'NULL_CLIENT\'";
|
||||||
return stream << "\'ID:" << cl->window() << ";WMCLASS:" << cl->resourceClass() << ":" << cl->resourceName() << ";Caption:" << cl->caption() << "\'";
|
return stream << "\'ID:" << cl->window() << ";WMCLASS:" << cl->resourceClass() << ":" << cl->resourceName() << ";Caption:" << cl->caption() << "\'";
|
||||||
}
|
}
|
||||||
|
kdbgstream& operator<<( kdbgstream& stream, const ClientList& list )
|
||||||
|
{
|
||||||
|
stream << "LIST:(";
|
||||||
|
bool first = true;
|
||||||
|
for( ClientList::ConstIterator it = list.begin();
|
||||||
|
it != list.end();
|
||||||
|
++it )
|
||||||
|
{
|
||||||
|
if( !first )
|
||||||
|
stream << ":";
|
||||||
|
first = false;
|
||||||
|
stream << *it;
|
||||||
|
}
|
||||||
|
stream << ")";
|
||||||
|
return stream;
|
||||||
|
}
|
||||||
|
kdbgstream& operator<<( kdbgstream& stream, const ConstClientList& list )
|
||||||
|
{
|
||||||
|
stream << "LIST:(";
|
||||||
|
bool first = true;
|
||||||
|
for( ConstClientList::ConstIterator it = list.begin();
|
||||||
|
it != list.end();
|
||||||
|
++it )
|
||||||
|
{
|
||||||
|
if( !first )
|
||||||
|
stream << ":";
|
||||||
|
first = false;
|
||||||
|
stream << *it;
|
||||||
|
}
|
||||||
|
stream << ")";
|
||||||
|
return stream;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QPixmap * kwin_get_menu_pix_hack()
|
QPixmap * kwin_get_menu_pix_hack()
|
||||||
|
|
4
client.h
4
client.h
|
@ -817,8 +817,12 @@ inline bool Client::hasUserTimeSupport() const
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
kndbgstream& operator<<( kndbgstream& stream, const Client* );
|
kndbgstream& operator<<( kndbgstream& stream, const Client* );
|
||||||
|
kndbgstream& operator<<( kndbgstream& stream, const ClientList& );
|
||||||
|
kndbgstream& operator<<( kndbgstream& stream, const ConstClientList& );
|
||||||
#else
|
#else
|
||||||
kdbgstream& operator<<( kdbgstream& stream, const Client* );
|
kdbgstream& operator<<( kdbgstream& stream, const Client* );
|
||||||
|
kdbgstream& operator<<( kdbgstream& stream, const ClientList& );
|
||||||
|
kdbgstream& operator<<( kdbgstream& stream, const ConstClientList& );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
KWIN_COMPARE_PREDICATE( WindowMatchPredicate, Window, cl->window() == value );
|
KWIN_COMPARE_PREDICATE( WindowMatchPredicate, Window, cl->window() == value );
|
||||||
|
|
Loading…
Reference in a new issue