From 43d16c6b94d50527a731dfec248de29c9e290144 Mon Sep 17 00:00:00 2001 From: "JunSeok, Kim" Date: Mon, 13 Aug 2018 16:38:26 +0900 Subject: [PATCH] e_comp_wl: accepts_focus set true at wl_surface_create instead of xdg_shell_toplevel_set if accepts_focus set TRUE in xdg_shell_toplevel_set can occure timing issue with focus_skip_set. in evas_object_show, xdg_shell_toplevel_set is always set the accepts_focus to TRUE if visibility calculation occurs before processing tizen_policy_set_focus_skip, focus will be in&out quickly. this patch fix the issue. Change-Id: I9441770a0c050899da32896833174dd4db709f4b --- src/bin/e_comp_wl.c | 1 + src/bin/e_comp_wl_shell.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 493f874b07..35da2ede1a 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -3240,6 +3240,7 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso if ((!ec->client.w) && (ec->client.h)) ec->client.w = ec->client.h = 1; ec->comp_data->surface = res; + ec->icccm.accepts_focus = 1; } /* set reference to pixmap so we can fetch it later */ diff --git a/src/bin/e_comp_wl_shell.c b/src/bin/e_comp_wl_shell.c index a70b51103d..ce3c5c5348 100644 --- a/src/bin/e_comp_wl_shell.c +++ b/src/bin/e_comp_wl_shell.c @@ -106,7 +106,6 @@ e_shell_e_client_toplevel_set(E_Client *ec) ELOGF("SHELL", "Set toplevel", ec->pixmap, ec); /* set toplevel client properties */ - ec->icccm.accepts_focus = 1; if (!ec->internal) ec->borderless = 1; ec->lock_border = EINA_TRUE; -- 2.34.1