According to implementation of pepper keyrouter which is a reference of
libds keyrouter, keyrouter_grab_check_grabbed() is supposed to return
true if a list of MODE_EXCLUSIVE is not empty.
This error seems to have been introduced by mistake during the
migration from pepper.
Change-Id: Ibc0d35bb4b7ba2c6381c248ddc0c861c83f6c8c1
switch(type) {
case TIZEN_KEYROUTER_MODE_EXCLUSIVE:
if (wl_list_empty(list) == false)
- ret = false;
- else
ret = true;
+ else
+ ret = false;
break;
case TIZEN_KEYROUTER_MODE_OVERRIDABLE_EXCLUSIVE:
ret = keyrouter_grab_check_duplicated_data(list, data);