From fa2ef1f02d9cc8cc4ca2ef50b17b5911f8a94d62 Mon Sep 17 00:00:00 2001 From: Dhiraj Kr Mishra Date: Thu, 4 May 2017 15:25:04 +0530 Subject: [PATCH] If a client Successfully Grabbed a key in exclusive mode, print information about client Change-Id: I3a553848d7fdd9b0f559d991b43f28260cf1ad54 Signed-off-by: Dhiraj Kr Mishra --- src/e_mod_main_wl.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/e_mod_main_wl.c b/src/e_mod_main_wl.c index 678b0f4..bfefbd2 100644 --- a/src/e_mod_main_wl.c +++ b/src/e_mod_main_wl.c @@ -202,8 +202,18 @@ _e_keyrouter_cb_keygrab_set(struct wl_client *client, struct wl_resource *resour TRACE_INPUT_END(); if (res == TIZEN_KEYROUTER_ERROR_NONE) - KLDBG("Success to %d key %s grab request (wl_client: %p, wl_surface: %p, pid: %d)", key, e_keyrouter_mode_to_string(mode), - client, surface, e_keyrouter_util_get_pid(client, surface)); + { + if (mode == TIZEN_KEYROUTER_MODE_EXCLUSIVE) + { + KLINF("Success to %d key %s grab request (wl_client: %p, wl_surface: %p, pid: %d)", key, e_keyrouter_mode_to_string(mode), + client, surface, e_keyrouter_util_get_pid(client, surface)); + } + else + { + KLDBG("Success to %d key %s grab request (wl_client: %p, wl_surface: %p, pid: %d)", key, e_keyrouter_mode_to_string(mode), + client, surface, e_keyrouter_util_get_pid(client, surface)); + } + } else KLINF("Failed to %d key %s grab request (wl_client: %p, wl_surface: %p, pid: %d): res: %d", key, e_keyrouter_mode_to_string(mode), client, surface, e_keyrouter_util_get_pid(client, surface), res); -- 2.34.1