add flag for comp screen iface to indicate relative motion eventing

devs/bu5hm4n/luncher_verbose
Mike Blumenkrantz 6 years ago
parent 186cf73294
commit 501efaf357
  1. 1
      src/bin/e_comp.h
  2. 3
      src/bin/e_comp_x_randr.c
  3. 1
      src/modules/wl_drm/e_mod_main.c

@ -74,6 +74,7 @@ typedef struct E_Comp_Screen_Iface
Eina_Bool (*key_down)(Ecore_Event_Key *ev);
/* is key event eaten */
Eina_Bool (*key_up)(Ecore_Event_Key *ev);
Eina_Bool relative_motion : 1;
} E_Comp_Screen_Iface;
/* 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,
.shutdown = e_comp_x_randr_shutdown,
.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

@ -820,6 +820,7 @@ static E_Comp_Screen_Iface drmiface =
.dpms = _drm2_dpms,
.key_down = _drm2_key_down,
.key_up = _drm2_key_up,
.relative_motion = EINA_TRUE,
};
static Eina_Bool

Loading…
Cancel
Save