Linux: Z-order of windows is somewhat more complicated, fix it