boolean () { // this is a workaround for X.Org bug https://gitlab.freedesktop.org/xorg/xserver/-/issues/1347 // it affects only non-override-redirect windows, hence the check for myNormalWindowLevel return UIUtil.isXServerOnWindows() && myNormalWindowLevel && IdeEventQueue.getInstance().getTrueCurrentEvent().getID() == WindowEvent.WINDOW_DEACTIVATED && System.currentTimeMillis() < myOpeningTime + 1000; }