ecore-wl2: Add environment variable to optionally disable wobbly windows
authorChris Michael <cpmichael@osg.samsung.com>
Sat, 14 May 2016 09:26:27 +0000 (05:26 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Sat, 14 May 2016 09:26:27 +0000 (05:26 -0400)
As not everyone needs/wants extra eye-candy, add a check for
EFL_WAYLAND_DISABLE_WWW environment variable to be able to disable
wobbly windows support

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/ecore_wl2/ecore_wl2_display.c

index 6e659f0..2b007ca 100644 (file)
@@ -150,7 +150,8 @@ _cb_global_add(void *data, struct wl_registry *registry, unsigned int id, const
         EINA_INLIST_FOREACH(ewd->windows, window)
           _ecore_wl2_window_shell_surface_init(window);
      }
-   else if (eina_streq(interface, "www"))
+   else if ((eina_streq(interface, "www")) &&
+            (!getenv("EFL_WAYLAND_DISABLE_WWW")))
      {
         Ecore_Wl2_Window *window;