static Eina_Bool
_e_comp_wl_client_new_helper(E_Client *ec)
{
- /* FIXME */
+ /* FIXME: No Way to get "initial attributes" of a wayland window */
ec->border_size = 0;
ec->placed |= ec->override;
switch (ec->netwm.type)
{
case E_WINDOW_TYPE_DIALOG:
- type = ECORE_WL_WINDOW_TYPE_TRANSIENT;
+ /* NB: If there is No transient set, then dialogs get
+ * treated as Normal Toplevel windows */
+ if (ec->icccm.transient_for)
+ type = ECORE_WL_WINDOW_TYPE_TRANSIENT;
break;
case E_WINDOW_TYPE_DESKTOP:
type = ECORE_WL_WINDOW_TYPE_FULLSCREEN;
break;
}
- if (ec->dialog) type = ECORE_WL_WINDOW_TYPE_TRANSIENT;
ecore_evas_wayland_type_set(ec->internal_ecore_evas, type);
}