summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorJohan Redestig <johan.redestig@sonymobile.com>2015-10-09 09:54:57 +0200
committerJohan Redestig <johan.redestig@sonymobile.com>2015-10-09 10:01:30 +0200
commit44fec944a9d193673b0e229d25f4e2df28fd1941 (patch)
treebec03a583a42462ef90ddfd2b8f228ec9256f49a /slideshow
parentb1f20fa48b65b2f03f9303ffa2aa381cd1d3dd6f (diff)
downloadextras-44fec944a9d193673b0e229d25f4e2df28fd1941.tar.gz
slideshow: Trigger on key down only
Currently slideshow reacts to both key down and release events which makes the last image just flicker very briefly. Change-Id: I5b3215eacf127a7c739826af313c6e1fd0732775
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/slideshow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/slideshow.cpp b/slideshow/slideshow.cpp
index 318d8053..c93157d3 100644
--- a/slideshow/slideshow.cpp
+++ b/slideshow/slideshow.cpp
@@ -38,7 +38,7 @@ static int input_cb(int fd, unsigned int epevents, void *data)
return -1;
}
- if (ev.type == EV_KEY) {
+ if (ev.type == EV_KEY && ev.value == 1) {
*key_code = ev.code;
}