From 391c833a8de1fbc93e76deeac3b418c0b87d56b6 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 10 Feb 2017 10:06:00 -0600 Subject: [PATCH] Remove tests for wayland damage_buffer presence We now depend on a version of wayland that has these, so we don't need to handle the case where it's not available anymore. --- src/bin/e_comp_wl.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 3e69a94d3..01af90ff2 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -7,12 +7,7 @@ #include "www-server-protocol.h" -/* When a wayland is released with this macro we can remove the ifdefs */ -#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION -# define COMPOSITOR_VERSION 4 -#else -# define COMPOSITOR_VERSION 3 -#endif +#define COMPOSITOR_VERSION 4 E_API int E_EVENT_WAYLAND_GLOBAL_ADD = -1; @@ -1793,10 +1788,7 @@ static const struct wl_surface_interface _e_surface_interface = _e_comp_wl_surface_cb_commit, _e_comp_wl_surface_cb_buffer_transform_set, _e_comp_wl_surface_cb_buffer_scale_set, -/* remove ifdefs once damage_buffer is officially released */ -#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION _e_comp_wl_surface_cb_damage_buffer -#endif };