aboutsummaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-02-16 20:28:08 -0800
committerAndroid Code Review <code-review@android.com>2011-02-16 20:28:08 -0800
commit601f3627157e8d994d35a58f5ee3187f04a6cb21 (patch)
treec62d4c51819511c1197041f8603eaaafe92dedb6 /hw
parent3566adb4537f898eea2466331b13a31522f11358 (diff)
parent8b9887163ce94928aec159956d1a61fc93bb949d (diff)
downloadexternal_qemu-601f3627157e8d994d35a58f5ee3187f04a6cb21.zip
external_qemu-601f3627157e8d994d35a58f5ee3187f04a6cb21.tar.gz
external_qemu-601f3627157e8d994d35a58f5ee3187f04a6cb21.tar.bz2
Merge "Merge 59e8e196 into tools_r10. DO NOT MERGE." into tools_r10
Diffstat (limited to 'hw')
-rw-r--r--hw/goldfish_events_device.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/goldfish_events_device.c b/hw/goldfish_events_device.c
index f9775bf..340dc76 100644
--- a/hw/goldfish_events_device.c
+++ b/hw/goldfish_events_device.c
@@ -458,10 +458,9 @@ void events_dev_init(uint32_t base, qemu_irq irq)
* was closed or opened (done when we switch layouts through
* KP-7 or KP-9).
*
- * We only support this when there is a real keyboard, which
- * we assume can be hidden/revealed.
+ * We only support this when hw.keyboard.lid is true.
*/
- if (config->hw_keyboard) {
+ if (config->hw_keyboard && config->hw_keyboard_lid) {
events_set_bit(s, EV_SYN, EV_SW);
events_set_bit(s, EV_SW, 0);
}