Initial steps of porting to KWindowSystem

Still using XfitMan's atom() method.