trying to implement a general transparent window handling