always perform initial input ungrab when waking screen

in the case where the desklock timer was longer than the blank timer,
this would permanently break input

input is still broken for the duration of the screen blank animation and
any time the screen is blanked
This commit is contained in:
Mike Blumenkrantz 2017-07-11 15:03:57 -04:00
parent 05a8df3d1a
commit 76484915e2
1 changed files with 2 additions and 1 deletions

View File

@ -4993,6 +4993,8 @@ EINTERN Eina_Bool
_e_comp_x_screensaver_off()
{
const char *s;
_e_comp_pointer_ungrab();
if ((!e_comp->pointer) || (!e_comp->pointer->o_ptr)) return ECORE_CALLBACK_RENEW;
s = edje_object_data_get(e_comp->pointer->o_ptr, "can_suspend");
@ -5000,7 +5002,6 @@ _e_comp_x_screensaver_off()
{
if (!e_desklock_state_get())
{
_e_comp_pointer_ungrab();
_e_comp_pointer_grab();
if (!_e_comp_x_suspend_grabbed) return ECORE_CALLBACK_RENEW;
}