forked from enlightenment/enlightenment
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:
parent
28dc5ced61
commit
2014de2fe6
|
@ -631,9 +631,7 @@ _e_client_del(E_Client *ec)
|
||||||
if (ec->internal_elm_win)
|
if (ec->internal_elm_win)
|
||||||
evas_object_hide(ec->internal_elm_win);
|
evas_object_hide(ec->internal_elm_win);
|
||||||
|
|
||||||
if (ec->focused &&
|
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_focus_set(ec->frame, 0);
|
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->hidden)
|
||||||
{
|
{
|
||||||
if (ec->focused &&
|
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);
|
||||||
}
|
}
|
||||||
ec->want_focus = ec->take_focus = 0;
|
ec->want_focus = ec->take_focus = 0;
|
||||||
|
@ -4135,10 +4131,7 @@ e_client_iconify(E_Client *ec)
|
||||||
e_client_comp_hidden_set(ec, 1);
|
e_client_comp_hidden_set(ec, 1);
|
||||||
if (!ec->new_client)
|
if (!ec->new_client)
|
||||||
{
|
{
|
||||||
if (ec->focused &&
|
_e_client_revert_focus(ec);
|
||||||
((!ec->netwm.type) || (ec->netwm.type == E_WINDOW_TYPE_DIALOG) ||
|
|
||||||
(ec->netwm.type == E_WINDOW_TYPE_NORMAL)))
|
|
||||||
_e_client_revert_focus(ec);
|
|
||||||
evas_object_hide(ec->frame);
|
evas_object_hide(ec->frame);
|
||||||
}
|
}
|
||||||
e_client_urgent_set(ec, ec->icccm.urgent);
|
e_client_urgent_set(ec, ec->icccm.urgent);
|
||||||
|
|
Loading…
Reference in New Issue