only set "dialog" border for transient clients if window type is unset

fix T3157

from https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html :
_NET_WM_WINDOW_TYPE_DIALOG indicates that this is a dialog window.
If _NET_WM_WINDOW_TYPE is not set, then managed windows with
WM_TRANSIENT_FOR set MUST be taken as this type
This commit is contained in:
Mike Blumenkrantz 2016-04-22 12:49:07 -04:00
parent b94023c412
commit 5c0729221e
1 changed files with 1 additions and 1 deletions

View File

@ -2160,7 +2160,7 @@ _e_client_frame_update(E_Client *ec)
bordername = "nofocus";
else if (ec->urgent)
bordername = "urgent";
else if (((ec->icccm.transient_for != 0) || (ec->dialog)) &&
else if (((ec->icccm.transient_for && (!ec->netwm.type)) || (ec->dialog)) &&
(e_pixmap_is_x(ec->pixmap)))
bordername = "dialog";
else if (ec->netwm.state.modal)