efl-wl: remove some broken logic for activating toplevel parents
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 17 Jan 2018 22:33:57 +0000 (17:33 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 02:42:51 +0000 (11:42 +0900)
parents of parents should not be marked as activated...probably

@fix

src/lib/efl_wl/efl_wl.c

index 88a9600..7362039 100644 (file)
@@ -1147,12 +1147,12 @@ static void
 shell_surface_activate_recurse(Comp_Surface *cs)
 {
    Comp_Surface *lcs, *parent = cs->parent;
-   Eina_List *l, *parents = NULL;
+   Eina_List *parents = NULL;
    Eina_Inlist *i;
 
    if (parent)
      {
-        /* apply focus to toplevel in case where focus is reverted */
+        /* remove focus from parents */
         while (parent)
           {
              parents = eina_list_append(parents, parent);
@@ -1170,14 +1170,6 @@ shell_surface_activate_recurse(Comp_Surface *cs)
                cs->c->surfaces = eina_inlist_promote(cs->c->surfaces, EINA_INLIST_GET(lcs));
             }
        }
-   /* last item is the toplevel */
-   EINA_LIST_REVERSE_FOREACH(parents, l, lcs)
-     {
-        if (lcs->shell.activated) continue;
-        lcs->shell.activated = 1;
-        if (!lcs->shell.popup)
-          shell_surface_send_configure(lcs);
-     }
    eina_list_free(parents);
 }