Developer documentation can be found in the KDE Community Wiki:

 * http://community.kde.org/KWin - KWin start page
 * http://community.kde.org/KWin/Hacking - Hacking information
 * http://community.kde.org/KWin/Class_Diagram - Class Diagram
