summaryrefslogtreecommitdiff
path: root/src/modules/wl_wl
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-05-11 09:44:00 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-05-18 12:05:34 -0500
commit6b0c55dd96c9d2cdcb500aad681e7645bd5a0e29 (patch)
tree17fff0d6920439771bf23381ce829587e6ae767b /src/modules/wl_wl
parentf6d99980ba1a31976a52e36c3a0b9e7405fd392f (diff)
downloadenlightenment-6b0c55dd96c9d2cdcb500aad681e7645bd5a0e29.tar.gz
Track parent compositor dmabuf capabilities on wayland on wayland
When running as a wayland compositor connected to another wayland compositor, we don't want to advertise dmabuf capabilities if the parent compositor doesn't support them. If it does, we'll want to proxy dmabuf requests to it instead of handling them ourselves. Expose this as new bools in e_comp_wl.
Diffstat (limited to 'src/modules/wl_wl')
-rw-r--r--src/modules/wl_wl/e_mod_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/wl_wl/e_mod_main.c b/src/modules/wl_wl/e_mod_main.c
index a00c584655..ad1162f4c8 100644
--- a/src/modules/wl_wl/e_mod_main.c
+++ b/src/modules/wl_wl/e_mod_main.c
@@ -23,6 +23,11 @@ _cb_sync_done(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
e_comp_canvas_resize(w * 2 / 3, h * 2 / 3);
+ if (!ecore_wl2_display_dmabuf_get(e_comp_wl->wl.client_disp))
+ e_comp_wl->dmabuf_disable = EINA_TRUE;
+ else
+ e_comp_wl->dmabuf_proxy = EINA_TRUE;
+
return ECORE_CALLBACK_PASS_ON;
}