Fix the behavior for transparent windows, refs ticket #12 @2h