forked from enlightenment/enlightenment
unset x11 focus grabs on clients only if there is an xwindow present
fix T2539
This commit is contained in:
parent
1716f1a6fa
commit
e9060ce771
|
@ -4246,12 +4246,12 @@ static void
|
||||||
_e_comp_x_hook_client_focus_set(void *d EINA_UNUSED, E_Client *ec)
|
_e_comp_x_hook_client_focus_set(void *d EINA_UNUSED, E_Client *ec)
|
||||||
{
|
{
|
||||||
focus_time = ecore_x_current_time_get();
|
focus_time = ecore_x_current_time_get();
|
||||||
_e_comp_x_focus_setdown(ec);
|
|
||||||
if (!e_client_has_xwindow(ec))
|
if (!e_client_has_xwindow(ec))
|
||||||
{
|
{
|
||||||
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
|
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
_e_comp_x_focus_setdown(ec);
|
||||||
|
|
||||||
if ((ec->icccm.take_focus) && (ec->icccm.accepts_focus))
|
if ((ec->icccm.take_focus) && (ec->icccm.accepts_focus))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue