Fix the bug about power-off popup. 15/14915/2
authorsh.pi <sh.pi@samsung.com>
Mon, 6 May 2013 05:33:12 +0000 (14:33 +0900)
committerKrzysztof Sasiak <k.sasiak@samsung.com>
Thu, 16 Jan 2014 10:38:45 +0000 (11:38 +0100)
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 <k.sasiak@samsung.com>
src/display/key-filter.c

index f82ef1c..f9a4c76 100644 (file)
@@ -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;