forked from enlightenment/enlightenment
add flag for comp screen iface to indicate relative motion eventing
This commit is contained in:
parent
186cf73294
commit
501efaf357
|
@ -74,6 +74,7 @@ typedef struct E_Comp_Screen_Iface
|
||||||
Eina_Bool (*key_down)(Ecore_Event_Key *ev);
|
Eina_Bool (*key_down)(Ecore_Event_Key *ev);
|
||||||
/* is key event eaten */
|
/* is key event eaten */
|
||||||
Eina_Bool (*key_up)(Ecore_Event_Key *ev);
|
Eina_Bool (*key_up)(Ecore_Event_Key *ev);
|
||||||
|
Eina_Bool relative_motion : 1;
|
||||||
} E_Comp_Screen_Iface;
|
} E_Comp_Screen_Iface;
|
||||||
|
|
||||||
/* struct to hold canvas objects so that abi doesn't break
|
/* struct to hold canvas objects so that abi doesn't break
|
||||||
|
|
|
@ -21,7 +21,8 @@ E_Comp_Screen_Iface xiface =
|
||||||
.init = e_comp_x_randr_init,
|
.init = e_comp_x_randr_init,
|
||||||
.shutdown = e_comp_x_randr_shutdown,
|
.shutdown = e_comp_x_randr_shutdown,
|
||||||
.create = e_comp_x_randr_create,
|
.create = e_comp_x_randr_create,
|
||||||
.apply = e_comp_x_randr_config_apply
|
.apply = e_comp_x_randr_config_apply,
|
||||||
|
.relative_motion = EINA_FALSE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -820,6 +820,7 @@ static E_Comp_Screen_Iface drmiface =
|
||||||
.dpms = _drm2_dpms,
|
.dpms = _drm2_dpms,
|
||||||
.key_down = _drm2_key_down,
|
.key_down = _drm2_key_down,
|
||||||
.key_up = _drm2_key_up,
|
.key_up = _drm2_key_up,
|
||||||
|
.relative_motion = EINA_TRUE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue