From: Dhiraj Kr Mishra Date: Thu, 4 May 2017 09:55:04 +0000 (+0530) Subject: If a client Successfully Grabbed a key in exclusive mode, print information about... X-Git-Tag: submit/tizen_3.0/20170613.050916~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa2ef1f02d9cc8cc4ca2ef50b17b5911f8a94d62;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-keyrouter.git If a client Successfully Grabbed a key in exclusive mode, print information about client Change-Id: I3a553848d7fdd9b0f559d991b43f28260cf1ad54 Signed-off-by: Dhiraj Kr Mishra --- 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);