[gpointing-device-settings] check also DeviceRemoved event.
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gpointing-device-settings] check also DeviceRemoved event.
- Date: Fri, 15 Jan 2010 23:53:41 +0000 (UTC)
commit 0d75343c57d4817e446511fbaaee397c2366ba81
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date: Fri Jan 15 20:57:36 2010 +0900
check also DeviceRemoved event.
toushpad should be re-enabled when there is no any other devices.
.../gsd-touchpad-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/modules/gnome-settings-daemon-plugins/gsd-touchpad-manager.c b/modules/gnome-settings-daemon-plugins/gsd-touchpad-manager.c
index 131f141..28be88e 100644
--- a/modules/gnome-settings-daemon-plugins/gsd-touchpad-manager.c
+++ b/modules/gnome-settings-daemon-plugins/gsd-touchpad-manager.c
@@ -245,7 +245,8 @@ device_presence_filter (GdkXEvent *xevent,
if (xev->type == xi_presence) {
XDevicePresenceNotifyEvent *notify_event = (XDevicePresenceNotifyEvent *)xev;
- if (notify_event->devchange == DeviceEnabled) {
+ if (notify_event->devchange == DeviceEnabled ||
+ notify_event->devchange == DeviceRemoved) {
set_disable_while_other_device_exists(manager,
xinput,
gconf_client_get_default());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]