forked from enlightenment/efl
ecore-wayland: test for subsurface protocol in wayland core
The subsurface protocol was moved into Wayland Core around v1.3.90 (i.e. v1.4.0). Test if subsurface protocol is part of wayland-client.h. If not, we include our own copy of the protocol header. Also, some whitespace cleanup in ecore_wl.c. Tested with Wayland 1.3.0 and 1.3.90 (master:360dca5). Fixes T529 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
parent
58368ea636
commit
cfb121c8f8
|
@ -4,7 +4,17 @@
|
|||
|
||||
#include <fcntl.h>
|
||||
#include "ecore_wl_private.h"
|
||||
|
||||
/*
|
||||
* The subsurface protocol was moved into Wayland Core
|
||||
* around v1.3.90 (i.e. v1.4.0).
|
||||
* Test if subsurface protocol is part of wayland-client.h.
|
||||
* If not, we include our own copy of the protocol header.
|
||||
*/
|
||||
#include <wayland-client.h>
|
||||
#ifndef WL_SUBSURFACE_ERROR_ENUM
|
||||
# include <subsurface-client-protocol.h>
|
||||
#endif
|
||||
|
||||
/* local function prototypes */
|
||||
static Eina_Bool _ecore_wl_shutdown(Eina_Bool close);
|
||||
|
|
|
@ -3,7 +3,17 @@
|
|||
#endif
|
||||
|
||||
#include "ecore_wl_private.h"
|
||||
|
||||
/*
|
||||
* The subsurface protocol was moved into Wayland Core
|
||||
* around v1.3.90 (i.e. v1.4.0).
|
||||
* Test if subsurface protocol is part of wayland-client.h.
|
||||
* If not, we include our own copy of the protocol header.
|
||||
*/
|
||||
#include <wayland-client.h>
|
||||
#ifndef WL_SUBSURFACE_ERROR_ENUM
|
||||
# include <subsurface-client-protocol.h>
|
||||
#endif
|
||||
|
||||
struct _Ecore_Wl_Subsurf
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue