forked from enlightenment/enlightenment
bugfix: focus setting on modal dialogs which are not ECORE_X_WINDOW_TYPE_DIALOG
This commit is contained in:
parent
237e5f6f51
commit
3a89244cd8
|
@ -8997,7 +8997,8 @@ _e_border_eval(E_Border *bd)
|
||||||
bd->want_focus = 0;
|
bd->want_focus = 0;
|
||||||
e_border_focus_set_with_pointer(bd);
|
e_border_focus_set_with_pointer(bd);
|
||||||
}
|
}
|
||||||
else if (bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DIALOG)
|
else if ((bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DIALOG) ||
|
||||||
|
(bd->parent && (bd->parent->modal == bd)))
|
||||||
{
|
{
|
||||||
if ((e_config->focus_setting == E_FOCUS_NEW_DIALOG) ||
|
if ((e_config->focus_setting == E_FOCUS_NEW_DIALOG) ||
|
||||||
((e_config->focus_setting == E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED) &&
|
((e_config->focus_setting == E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED) &&
|
||||||
|
|
Loading…
Reference in New Issue