forked from enlightenment/enlightenment
add comp util function for determining whether the keyboard has been grabbed
This commit is contained in:
parent
ff5b06b79d
commit
c7bdf6d992
|
@ -1586,6 +1586,12 @@ e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd)
|
|||
e_client_refocus();
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
e_comp_util_kbd_grabbed(void)
|
||||
{
|
||||
return e_menu_grab_window_get() || e_client_action_get() || e_grabinput_key_win_get();
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_comp_gl_set(Eina_Bool set)
|
||||
{
|
||||
|
|
|
@ -211,6 +211,8 @@ EAPI E_Config_Dialog *e_int_config_comp(Evas_Object *parent, const char *params)
|
|||
EAPI E_Config_Dialog *e_int_config_comp_match(Evas_Object *parent, const char *params);
|
||||
|
||||
|
||||
EAPI Eina_Bool e_comp_util_kbd_grabbed(void);
|
||||
|
||||
static inline Eina_Bool
|
||||
e_comp_util_client_is_fullscreen(const E_Client *ec)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue