Commit 9b77e071 authored by Olivier Fourdan's avatar Olivier Fourdan 🛠

netwm: Mark splashscreen as transient for groups

KDE applications such as Krita place their splashscreen window above
other windows, but may display a dialog at startup, and that dialog
would end up underneath the splashscreen.

Make the splashscreen windows transient for groups, so that if another
window from the same applications is eventually mapped, the splashscreen
will be sent back automatically at the same layer as the application and
will not hide it.
Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <fourdan@xfce.org>
Fixes: #470
parent e1cbe04b
......@@ -1332,6 +1332,14 @@ clientWindowType (Client * c)
XFWM_FLAG_HAS_BORDER | XFWM_FLAG_HAS_HIDE |
XFWM_FLAG_HAS_MENU | XFWM_FLAG_HAS_MOVE |
XFWM_FLAG_HAS_RESIZE);
/* Treat SPLASHSCREEN as transient for group to work around
* broken apps placing splashscreens above and then complaining
* it hides their dialogs, sigh.
*/
if ((c->transient_for == None) || (!clientGetTransient (c)))
{
c->transient_for = c->screen_info->xroot;
}
}
else if (c->type_atom == display_info->atoms[NET_WM_WINDOW_TYPE_NOTIFICATION])
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment