forked from enlightenment/enlightenment
parent
2bdd24ea93
commit
984d2c1869
|
@ -115,18 +115,23 @@ _e_grabinput_focus(Ecore_X_Window win, E_Focus_Method method)
|
||||||
{
|
{
|
||||||
case E_FOCUS_METHOD_NO_INPUT:
|
case E_FOCUS_METHOD_NO_INPUT:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_FOCUS_METHOD_LOCALLY_ACTIVE:
|
case E_FOCUS_METHOD_LOCALLY_ACTIVE:
|
||||||
ecore_x_window_focus_at_time(win, ecore_x_current_time_get());
|
ecore_x_window_focus_at_time(win, ecore_x_current_time_get());
|
||||||
ecore_x_icccm_take_focus_send(win, ecore_x_current_time_get());
|
ecore_x_icccm_take_focus_send(win, ecore_x_current_time_get());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_FOCUS_METHOD_GLOBALLY_ACTIVE:
|
case E_FOCUS_METHOD_GLOBALLY_ACTIVE:
|
||||||
ecore_x_icccm_take_focus_send(win, ecore_x_current_time_get());
|
ecore_x_icccm_take_focus_send(win, ecore_x_current_time_get());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case E_FOCUS_METHOD_PASSIVE:
|
case E_FOCUS_METHOD_PASSIVE:
|
||||||
ecore_x_window_focus_at_time(win, ecore_x_current_time_get());
|
ecore_x_window_focus_at_time(win, ecore_x_current_time_get());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
last_focus_time = ecore_loop_time_get();
|
last_focus_time = ecore_loop_time_get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue