ecore-wl2: Add event structures for focus in/out
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
7e5ccc3862
commit
f811cc85d5
|
@ -36,6 +36,18 @@ typedef struct _Ecore_Wl2_Display Ecore_Wl2_Display;
|
||||||
typedef struct _Ecore_Wl2_Output Ecore_Wl2_Output;
|
typedef struct _Ecore_Wl2_Output Ecore_Wl2_Output;
|
||||||
typedef struct _Ecore_Wl2_Input Ecore_Wl2_Input;
|
typedef struct _Ecore_Wl2_Input Ecore_Wl2_Input;
|
||||||
|
|
||||||
|
typedef struct _Ecore_Wl2_Event_Focus_In
|
||||||
|
{
|
||||||
|
unsigned int window;
|
||||||
|
unsigned int timestamp;
|
||||||
|
} Ecore_Wl2_Event_Focus_In;
|
||||||
|
|
||||||
|
typedef struct _Ecore_Wl2_Event_Focus_Out
|
||||||
|
{
|
||||||
|
unsigned int window;
|
||||||
|
unsigned int timestamp;
|
||||||
|
} Ecore_Wl2_Event_Focus_Out;
|
||||||
|
|
||||||
typedef struct _Ecore_Wl2_Global
|
typedef struct _Ecore_Wl2_Global
|
||||||
{
|
{
|
||||||
Eina_Stringshare *interface;
|
Eina_Stringshare *interface;
|
||||||
|
@ -62,7 +74,8 @@ typedef enum _Ecore_Wl2_Window_Type
|
||||||
|
|
||||||
EAPI extern int ECORE_WL2_EVENT_GLOBAL_ADDED;
|
EAPI extern int ECORE_WL2_EVENT_GLOBAL_ADDED;
|
||||||
EAPI extern int ECORE_WL2_EVENT_GLOBAL_REMOVED;
|
EAPI extern int ECORE_WL2_EVENT_GLOBAL_REMOVED;
|
||||||
|
EAPI extern int ECORE_WL2_EVENT_FOCUS_IN;
|
||||||
|
EAPI extern int ECORE_WL2_EVENT_FOCUS_OUT;
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @brief Ecore functions for dealing with the Wayland display protocol
|
* @brief Ecore functions for dealing with the Wayland display protocol
|
||||||
|
|
|
@ -13,6 +13,8 @@ int _ecore_wl2_log_dom = -1;
|
||||||
/* public API variables */
|
/* public API variables */
|
||||||
EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
|
EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
|
||||||
EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
|
EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
|
||||||
|
EAPI int ECORE_WL2_EVENT_FOCUS_IN = 0;
|
||||||
|
EAPI int ECORE_WL2_EVENT_FOCUS_OUT = 0;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_cb_wl_log_print(const char *format, va_list args)
|
_cb_wl_log_print(const char *format, va_list args)
|
||||||
|
@ -57,6 +59,8 @@ ecore_wl2_init(void)
|
||||||
{
|
{
|
||||||
ECORE_WL2_EVENT_GLOBAL_ADDED = ecore_event_type_new();
|
ECORE_WL2_EVENT_GLOBAL_ADDED = ecore_event_type_new();
|
||||||
ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new();
|
ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new();
|
||||||
|
ECORE_WL2_EVENT_FOCUS_IN = ecore_event_type_new();
|
||||||
|
ECORE_WL2_EVENT_FOCUS_OUT = ecore_event_type_new();
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_log_set_handler_server(_cb_wl_log_print);
|
wl_log_set_handler_server(_cb_wl_log_print);
|
||||||
|
|
Loading…
Reference in New Issue