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

This commit is contained in:
Dmitry Batrak
2022-06-03 16:40:34 +03:00
committed by jbrbot
parent 8d0f597aca
commit 92982bb949

View File

@@ -1212,7 +1212,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 {