Revert "do not revert client focus except for normal and dialog windows"

This reverts commit 5b119d437a.

I give this solution a B- for working but also totally ruining everything
This commit is contained in:
Mike Blumenkrantz 2016-04-22 14:38:56 -04:00
parent 28dc5ced61
commit 2014de2fe6
1 changed files with 3 additions and 10 deletions

View File

@ -631,9 +631,7 @@ _e_client_del(E_Client *ec)
if (ec->internal_elm_win)
evas_object_hide(ec->internal_elm_win);
if (ec->focused &&
((!ec->netwm.type) || (ec->netwm.type == E_WINDOW_TYPE_DIALOG) ||
(ec->netwm.type == E_WINDOW_TYPE_NORMAL)))
if (ec->focused)
_e_client_revert_focus(ec);
evas_object_focus_set(ec->frame, 0);
@ -1401,9 +1399,7 @@ _e_client_cb_evas_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
if (!ec->hidden)
{
if (ec->focused &&
((!ec->netwm.type) || (ec->netwm.type == E_WINDOW_TYPE_DIALOG) ||
(ec->netwm.type == E_WINDOW_TYPE_NORMAL)))
if (ec->focused)
_e_client_revert_focus(ec);
}
ec->want_focus = ec->take_focus = 0;
@ -4135,10 +4131,7 @@ e_client_iconify(E_Client *ec)
e_client_comp_hidden_set(ec, 1);
if (!ec->new_client)
{
if (ec->focused &&
((!ec->netwm.type) || (ec->netwm.type == E_WINDOW_TYPE_DIALOG) ||
(ec->netwm.type == E_WINDOW_TYPE_NORMAL)))
_e_client_revert_focus(ec);
_e_client_revert_focus(ec);
evas_object_hide(ec->frame);
}
e_client_urgent_set(ec, ec->icccm.urgent);