forked from enlightenment/efl
evas: simplify seat-getting during key event dispatch
This commit is contained in:
parent
6632f4d906
commit
32bf71f19e
|
@ -3060,11 +3060,7 @@ _key_event_dispatch(Evas_Public_Data *e, void *event_info,
|
||||||
{
|
{
|
||||||
const char *name = efl_input_device_name_get(device);
|
const char *name = efl_input_device_name_get(device);
|
||||||
|
|
||||||
while ((device = efl_input_device_parent_get(device)))
|
device = efl_input_device_seat_get(device);
|
||||||
{
|
|
||||||
if (efl_input_device_type_get(device) == EFL_INPUT_DEVICE_CLASS_SEAT)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (!device)
|
if (!device)
|
||||||
{
|
{
|
||||||
ERR("Could not find the parent seat from device name '%s'. Using default seat instead", name);
|
ERR("Could not find the parent seat from device name '%s'. Using default seat instead", name);
|
||||||
|
|
Loading…
Reference in New Issue