You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.7 KiB
81 lines
1.7 KiB
/***************************************************************** |
|
KWin - the KDE window manager |
|
This file is part of the KDE project. |
|
|
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org> |
|
|
|
You can Freely distribute this program under the GNU General Public |
|
License. See the file "COPYING" for the exact licensing terms. |
|
******************************************************************/ |
|
|
|
#include "toplevel.h" |
|
|
|
namespace KWinInternal |
|
{ |
|
|
|
Toplevel::Toplevel( Workspace* ws ) |
|
: vis( None ) |
|
, id( None ) |
|
, wspace( ws ) |
|
, damage_handle( None ) |
|
, is_shape( false ) |
|
{ |
|
} |
|
|
|
Toplevel::~Toplevel() |
|
{ |
|
assert( damage_handle == None ); |
|
} |
|
|
|
#ifndef NDEBUG |
|
kdbgstream& operator<<( kdbgstream& stream, const Toplevel* cl ) |
|
{ |
|
if( cl == NULL ) |
|
return stream << "\'NULL\'"; |
|
cl->debug( stream ); |
|
return stream; |
|
} |
|
|
|
kdbgstream& operator<<( kdbgstream& stream, const ToplevelList& list ) |
|
{ |
|
stream << "LIST:("; |
|
bool first = true; |
|
for( ToplevelList::ConstIterator it = list.begin(); |
|
it != list.end(); |
|
++it ) |
|
{ |
|
if( !first ) |
|
stream << ":"; |
|
first = false; |
|
stream << *it; |
|
} |
|
stream << ")"; |
|
return stream; |
|
} |
|
|
|
kdbgstream& operator<<( kdbgstream& stream, const ConstToplevelList& list ) |
|
{ |
|
stream << "LIST:("; |
|
bool first = true; |
|
for( ConstToplevelList::ConstIterator it = list.begin(); |
|
it != list.end(); |
|
++it ) |
|
{ |
|
if( !first ) |
|
stream << ":"; |
|
first = false; |
|
stream << *it; |
|
} |
|
stream << ")"; |
|
return stream; |
|
} |
|
#endif |
|
|
|
void Toplevel::detectShape( Window id ) |
|
{ |
|
is_shape = Extensions::hasShape( id ); |
|
} |
|
|
|
} // namespace |
|
|
|
#include "toplevel.moc"
|
|
|