From a2407e754073315da05b19779fd1d5c7ddf7380e Mon Sep 17 00:00:00 2001 From: "sh.pi" Date: Mon, 6 May 2013 14:33:12 +0900 Subject: [PATCH] Fix the bug about power-off popup. After screen capture (volume down + power key), power-off system popup shows. It's timing problem. screen capture is working when two key pressed at the same time. If power key is pressed slightly first, power off popup timer is started. now timer is cancelled when volume key's pressed. Change-Id: Ic1f497591ef7cd9e3195f4c12e5d1beb3e470f50 Signed-off-by: Krzysztof Sasiak --- src/display/key-filter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display/key-filter.c b/src/display/key-filter.c index f82ef1c..f9a4c76 100644 --- a/src/display/key-filter.c +++ b/src/display/key-filter.c @@ -214,6 +214,10 @@ static int process_volumedown_key(struct input_event *pinput) ecore_timer_del(combination_timeout_id); combination_timeout_id = NULL; } + if (longkey_timeout_id > 0) { + ecore_timer_del(longkey_timeout_id); + longkey_timeout_id = NULL; + } _I("capture mode"); key_combination = KEY_COMBINATION_SCREENCAPTURE; ignore = false; -- 2.7.4