mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-4537 Popup windows shown for a background window cause app icon to blink in taskbar on KDE
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user