571ba9cf9e
besides drawing what should be drawn anyway, and there are still some things missing like stacking order for override redirect windows, but KWin is basically a compositing manager now. svn path=/branches/work/kwin_composite/; revision=558168
77 lines
1.7 KiB
C++
77 lines
1.7 KiB
C++
/*****************************************************************
|
|
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 )
|
|
: id( None )
|
|
, wspace( ws )
|
|
, damage( None )
|
|
, window_pixmap( None )
|
|
{
|
|
}
|
|
|
|
Toplevel::~Toplevel()
|
|
{
|
|
if( window_pixmap != None )
|
|
XFreePixmap( display(), window_pixmap );
|
|
}
|
|
|
|
#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
|
|
|
|
|
|
} // namespace
|
|
|
|
#include "toplevel.moc"
|