e_client: Correct the order of the newly visible E_Client 00/308900/1
authorJunseok Kim <juns.kim@samsung.com>
Tue, 2 Apr 2024 10:54:45 +0000 (19:54 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Tue, 2 Apr 2024 10:56:05 +0000 (19:56 +0900)
When adding a newly visible "EC" to the focus history, add it after the client that has higher layer.

Change-Id: I3839dcb2cf6eedfbfced998f593bcfbcdd22cd98

src/bin/e_client.c

index 28a1edced7bcaf91c043736844e3a7b10a1cb800..6a01de9406102c27d8fe0befc776461dd53865b4 100644 (file)
@@ -5850,6 +5850,7 @@ e_client_focus_stack_append_current_focused(E_Client *ec)
    EINA_LIST_FOREACH(focus_stack, l, temp_ec)
      {
         if (temp_ec != focused) continue;
+        if (temp_ec->layer > ec->layer) continue;
 
         focus_stack = eina_list_append_relative_list(focus_stack, ec, l);
         return;