JBR-3038 Unexpected windows z-order change on workspace switch

(cherry picked from commit ddda860f42)
This commit is contained in:
Dmitry Batrak
2021-01-20 16:31:22 +03:00
committed by alexey.ushakov@jetbrains.com
parent 5839f05ca0
commit 1a4756eec6

View File

@@ -1419,7 +1419,7 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
isUnhiding |= isWMStateNetHidden();
super.handleMapNotifyEvent(xev);
if (!winAttr.initialFocus && shouldSuppressWmTakeFocus()) {
if (isBeforeFirstMapNotify && !winAttr.initialFocus && shouldSuppressWmTakeFocus()) {
suppressWmTakeFocus(false); // restore the protocol.
/*
* For some reason, on Metacity, a frame/dialog being shown