MER: Make sure to only prevent cover surfaces from hiding

Qt::CoverWindow is '64 | Qt::Window', so (flags() & Qt::CoverWindow)
is true for windows with type Qt::Window too.