pop an error dialog when trying to load xwayland module under x11
this is impossible and will never be possible; ecore-x can only manage a single x11 connection at any time, and so it will never be possible to both manage the x11 compositor canvas on one xserver and manage xwayland clients on a separate server invalidates T2537
This commit is contained in:
parent
6fa4e93d19
commit
b80f96f2fa
|
@ -288,6 +288,13 @@ setup_lock(void)
|
|||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
error_dialog()
|
||||
{
|
||||
e_util_dialog_internal(_("Error"), _("Cannot launch XWayland from X11 display."));
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
/* module functions */
|
||||
E_API E_Module_Api e_modapi = { E_MODULE_API_VERSION, "XWayland" };
|
||||
|
||||
|
@ -299,6 +306,12 @@ e_modapi_init(E_Module *m)
|
|||
/* make sure it's a wayland compositor */
|
||||
if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return NULL;
|
||||
|
||||
if (getenv("DISPLAY"))
|
||||
{
|
||||
ecore_timer_add(1.0, error_dialog, NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
DBG("LOAD XWAYLAND MODULE");
|
||||
|
||||
/* alloc space for server struct */
|
||||
|
|
Loading…
Reference in New Issue