make undecorated windows place according to their undecorated state (bug #5179)