shot: Skip the wayland setup bits when running under X
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 21 Jul 2015 16:23:08 +0000 (12:23 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 21 Jul 2015 16:23:55 +0000 (12:23 -0400)
fix T2592

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2851

src/modules/shot/e_mod_main.c

index 1cba5c7..7b2c798 100644 (file)
@@ -1285,6 +1285,8 @@ e_modapi_init(E_Module *m)
      ("main/2",  _("Take Screenshot"), _e_mod_menu_add, NULL, NULL, NULL);
    border_hook = e_int_client_menu_hook_add(_bd_hook, NULL);
 
+   if (e_comp->comp_type == E_PIXMAP_TYPE_X) return m;
+
 #ifdef HAVE_WAYLAND
    Eina_Inlist *globals;
    Ecore_Wl_Global *global;