b6bf8d5b2d
Windows can sometimes be focused, or appear to be focused, without being at the exact top of the stack, for example in the case of override-redirect windows, or with attached modal dialogs. In that case, we should not try to minimize them (as it creates a loop that makes it impossible to restore the window) https://bugzilla.gnome.org/show_bug.cgi?id=694905