kirillrakhman
val it = g.focusedWindow?.rootWindow ?: return true return !(it.flags has WindowFlags.Popup && it.wasActive && it != window.rootWindow)