add modal lock window to border hash and enable finding by lock window

This commit is contained in:
Mike Blumenkrantz 2013-07-03 09:54:12 +01:00 committed by Cedric BAIL
parent 97dc308991
commit 912ac3c168
1 changed files with 3 additions and 1 deletions

View File

@ -3397,7 +3397,7 @@ e_border_find_by_window(Ecore_X_Window win)
bd = eina_hash_find(borders_hash, e_util_winid_str_get(win));
if ((bd) && (!e_object_is_del(E_OBJECT(bd))) &&
(bd->win == win))
((bd->win == win) || (bd->client.lock_win == win)))
return bd;
return NULL;
}
@ -5215,6 +5215,7 @@ _e_border_del(E_Border *bd)
{
if (bd->parent->client.lock_win)
{
eina_hash_del_by_key(borders_hash, e_util_winid_str_get(bd->parent->client.lock_win));
ecore_x_window_hide(bd->parent->client.lock_win);
ecore_x_window_free(bd->parent->client.lock_win);
bd->parent->client.lock_win = 0;
@ -7671,6 +7672,7 @@ _e_border_eval0(E_Border *bd)
if (!bd->parent->client.lock_win)
{
bd->parent->client.lock_win = ecore_x_window_input_new(bd->parent->client.shell_win, 0, 0, bd->parent->client.w, bd->parent->client.h);
eina_hash_add(borders_hash, e_util_winid_str_get(bd->parent->client.lock_win), bd->parent);
ecore_x_window_show(bd->parent->client.lock_win);
}
}