fix fileman stealing focus

desktop fileman should only receive focus if there is no client currently visible on the active desktop
This commit is contained in:
discomfitor 2013-10-19 12:14:51 +01:00 committed by Mike Blumenkrantz
parent a6a93c05b4
commit 3948c1c910
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ _e_fwin_client_hook_focus_unset(void *d EINA_UNUSED, E_Client *ec)
E_Fwin *fwin;
/* if there is no new focused, set focus to zone fwin */
if (e_client_focused_get()) return;
if (e_client_focused_get() ||
e_desk_client_top_visible_get(e_desk_current_get(ec->zone))) return;
fwin = e_fwin_zone_find(ec->zone);
if (fwin)
evas_object_focus_set(fwin->cur_page->fm_obj, 1);