It is not used anymore.
Change-Id: I491414a28def3e933fc69398e188620fb85ce131
if (warp_client)
{
warp_x[0] = warp_x[1] = warp_y[0] = warp_y[1] = -1;
- if (warp_client->modal)
- {
- warp_client = NULL;
- return ECORE_CALLBACK_CANCEL;
- }
e_focus_event_mouse_in(warp_client);
if (warp_client->iconic)
{
if (!desk) return NULL;
if (ec->zone->display_state == E_ZONE_DISPLAY_STATE_OFF) return NULL;
- if ((ec->parent) &&
- (ec->parent->desk == desk) && (ec->parent->modal == ec))
- {
- // set parent focus
- focus_ec = ec->parent;
- if (e_config->raise_on_revert_focus)
- e_client_raise(ec->parent);
- }
- else if (e_config->focus_policy == E_FOCUS_MOUSE)
+ if (e_config->focus_policy == E_FOCUS_MOUSE)
{
// set mouse over focus
pec = e_client_under_pointer_get(desk, ec);
if (ec->leader)
{
ec->leader->group = eina_list_remove(ec->leader->group, ec);
- if (ec->leader->modal == ec)
- ec->leader->modal = NULL;
ec->leader = NULL;
}
EINA_LIST_FREE(ec->group, child)
Ecore_Poller *ping_poller;
Ecore_Timer *kill_timer;
- E_Client *modal;
-
E_Client *leader;
Eina_List *group;
if (focus)
{
- /* check for dialog children that steal focus */
- if ((ec->modal) && (ec->modal != ec) &&
- (ec->modal->visible) && (!e_object_is_del(E_OBJECT(ec->modal))))
- {
- if (e_config->focus_policy_ext != E_FOCUS_EXT_TOP_STACK)
- {
- ELOGF("FOCUS", "focus set | intercept focus to modal", ec->modal);
- e_client_frame_focus_set(ec->modal, focus);
- }
- return;
- }
- else if ((ec->leader) && (ec->leader->modal) &&
- (ec->leader->modal != ec) && ec->leader->modal->visible &&
- (!e_object_is_del(E_OBJECT(ec->leader->modal))))
- {
- if (e_config->focus_policy_ext != E_FOCUS_EXT_TOP_STACK)
- {
- ELOGF("FOCUS", "focus set | intercept focus to leader->modal", ec->leader->modal);
- e_client_frame_focus_set(ec->leader->modal, focus);
- }
- return;
- }
if (!cw->visible)
{
/* not yet visible, wait till the next time... */
if (ec->comp_data->sub.watcher)
wl_resource_destroy(ec->comp_data->sub.watcher);
- if ((ec->parent) && (ec->parent->modal == ec))
- {
- ec->parent->lock_close = EINA_FALSE;
- ec->parent->modal = NULL;
- }
-
wl_signal_emit(&ec->comp_data->destroy_signal, &ec->comp_data->surface);
_e_comp_wl_surface_state_finish(&ec->comp_data->pending);
{
ec->parent->transients =
eina_list_remove(ec->parent->transients, ec);
- if (ec->parent->modal == ec) ec->parent->modal = NULL;
ec->parent = NULL;
}
{
ec->parent->transients =
eina_list_remove(ec->parent->transients, ec);
- if (ec->parent->modal == ec) ec->parent->modal = NULL;
ec->parent = NULL;
ec->icccm.fetch.transient_for = EINA_TRUE;
{
ec->parent->transients =
eina_list_remove(ec->parent->transients, ec);
- if (ec->parent->modal == ec) ec->parent->modal = NULL;
ec->parent = NULL;
}