diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-08-25 15:59:43 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-08-25 15:59:43 -0500 |
commit | cb9c3ed914b0b1578a3fcaea3e35add08cc0bdfb (patch) | |
tree | 1f235fabb0b34970b1096f61878a8aa37e353211 /tdecore/tdehw/tdeeventdevice.cpp | |
parent | 1fdeea09282c898d637d61178a64a870439e45f5 (diff) | |
download | tdelibs-cb9c3ed914b0b1578a3fcaea3e35add08cc0bdfb.tar.gz tdelibs-cb9c3ed914b0b1578a3fcaea3e35add08cc0bdfb.zip |
Fix ACPI button event detection on machines with an independent ACPI event controller module such as Thinkpads
Only detect the ACPI key press event, not the key release event
Diffstat (limited to 'tdecore/tdehw/tdeeventdevice.cpp')
-rw-r--r-- | tdecore/tdehw/tdeeventdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdeeventdevice.cpp b/tdecore/tdehw/tdeeventdevice.cpp index 3a45cf5d1..185c4153d 100644 --- a/tdecore/tdehw/tdeeventdevice.cpp +++ b/tdecore/tdehw/tdeeventdevice.cpp @@ -143,7 +143,7 @@ void TDEEventDevice::eventReceived() { int r; r = read(m_fd, &ev, sizeof(struct input_event)); if (r > 0) { - if (ev.type == EV_KEY) { + if ((ev.type == EV_KEY) && (ev.value == 1)) { // Only detect keypress events (value == 1) emit keyPressed(ev.code, this); } } |