JBR-4537 Popup windows shown for a background window cause app icon to blink in taskbar on KDE

(cherry picked from commit 704ffcc0ee)
This commit is contained in:
Dmitry Batrak
2022-06-03 16:40:34 +03:00
committed by jbrbot
parent c287180b6c
commit 962ae417d9

View File

@@ -1182,7 +1182,11 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
@Override
void setUserTimeBeforeShowing() {
if (winAttr.initialFocus || shouldSuppressWmTakeFocus()) {
if (XWM.getWMID() == XWM.KDE2_WM && isSimpleWindow() && ((Window)target).getType() == Window.Type.POPUP) {
// Workaround, to suppress blinking of taskbar icon, when hover popup is displayed for a background window
setUserTime(XToolkit.getCurrentServerTime(), false);
}
else if (winAttr.initialFocus || shouldSuppressWmTakeFocus()) {
super.setUserTimeBeforeShowing();
}
else {