derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=391c833a8de1fbc93e76deeac3b418c0b87d56b6

commit 391c833a8de1fbc93e76deeac3b418c0b87d56b6
Author: Derek Foreman <[email protected]>
Date:   Fri Feb 10 10:06:00 2017 -0600

    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 3e69a94..01af90f 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
 };
 
 

-- 


Reply via email to