elm: Always connect to wl when enforced
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 25 Jun 2016 11:06:41 +0000 (13:06 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 25 Jun 2016 11:06:41 +0000 (13:06 +0200)
This is a followup on ca55a920d9a5f6a4274e40fcf901a89e622c3007.

This fixes cnp/dnd for applications started outside of the weston
session. (There are still more problems with dnd and cnp)

src/lib/elementary/elm_config.c

index 204ee34..71cf73a 100644 (file)
@@ -3936,13 +3936,8 @@ _elm_config_sub_init(void)
      {
         if (!strcmp(ev, "wl")) /* and it is X11 */
           {
-             if (!have_wl_display) /* if there is no $DISPLAY */
-               {
-                  ERR("$ELM_DISPLAY is set to wl but $WAYLAND_DISPLAY is not set");
-                  init_wl = EINA_FALSE;
-               }
-             else /* if there is */
-               init_wl = EINA_TRUE;
+             /* always try to connect to wl when it is enforced */
+             init_wl = EINA_TRUE;
           }
         else /* not wl */
           init_wl = EINA_FALSE;