Skip to content
Snippets Groups Projects
Commit 40dbde3a authored by Denis Fokin's avatar Denis Fokin
Browse files

7078460: JDialog is shown as separate icon on the taskbar

Reviewed-by: anthony
parent 9bf6ef18
No related branches found
No related tags found
No related merge requests found
......@@ -255,6 +255,21 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
}
}
if (owner != null || isSimpleWindow()) {
XNETProtocol protocol = XWM.getWM().getNETProtocol();
if (protocol != null && protocol.active()) {
XToolkit.awtLock();
try {
XAtomList net_wm_state = getNETWMState();
net_wm_state.add(protocol.XA_NET_WM_STATE_SKIP_TASKBAR);
setNETWMState(net_wm_state);
} finally {
XToolkit.awtUnlock();
}
}
}
// Init warning window(for applets)
if (((Window)target).getWarningString() != null) {
// accessSystemTray permission allows to display TrayIcon, TrayIcon tooltip
......@@ -480,14 +495,6 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
bounds.x, bounds.y, bounds.width, bounds.height);
XWM.setMotifDecor(this, false, 0, 0);
XNETProtocol protocol = XWM.getWM().getNETProtocol();
if (protocol != null && protocol.active()) {
XAtomList net_wm_state = getNETWMState();
net_wm_state.add(protocol.XA_NET_WM_STATE_SKIP_TASKBAR);
setNETWMState(net_wm_state);
}
boolean isResized = !bounds.getSize().equals(oldBounds.getSize());
boolean isMoved = !bounds.getLocation().equals(oldBounds.getLocation());
if (isMoved || isResized) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment