fix fileman stealing focus
authordiscomfitor <michael.blumenkrantz@gmail.com>
Sat, 19 Oct 2013 11:14:51 +0000 (12:14 +0100)
committerMike Blumenkrantz <zmike@samsung.com>
Wed, 15 Jan 2014 01:28:59 +0000 (20:28 -0500)
desktop fileman should only receive focus if there is no client currently visible on the active desktop

src/modules/fileman/e_fwin.c

index fe4beae..a5fe9a8 100644 (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);