Window manager implementation (does not compile)