Prevent seat capabilities storms

This commit is contained in:
Derek Foreman 2017-08-16 15:25:07 -05:00
parent 3271efaba4
commit b7ecbde928
1 changed files with 6 additions and 0 deletions

View File

@ -625,6 +625,8 @@ e_comp_wl_input_pointer_enabled_set(Eina_Bool enabled)
return;
}
if (e_comp_wl->ptr.enabled == !!enabled) return;
e_comp_wl->ptr.enabled = !!enabled;
_e_comp_wl_input_update_seat_caps();
}
@ -639,6 +641,8 @@ e_comp_wl_input_keyboard_enabled_set(Eina_Bool enabled)
return;
}
if (e_comp_wl->kbd.enabled == !!enabled) return;
e_comp_wl->kbd.enabled = !!enabled;
_e_comp_wl_input_update_seat_caps();
}
@ -754,6 +758,8 @@ e_comp_wl_input_touch_enabled_set(Eina_Bool enabled)
return;
}
if (e_comp_wl->touch.enabled == !!enabled) return;
e_comp_wl->touch.enabled = !!enabled;
_e_comp_wl_input_update_seat_caps();
}