[gnome-settings-daemon] mouse: Stop idle start when stop() is called
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] mouse: Stop idle start when stop() is called
- Date: Tue, 15 Jan 2013 13:58:14 +0000 (UTC)
commit 9d6e80924ff9011dc2d8caa8a49a588ff4a318bd
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 15 14:55:38 2013 +0100
mouse: Stop idle start when stop() is called
Might fix:
https://bugzilla.gnome.org/show_bug.cgi?id=690898
plugins/mouse/gsd-mouse-manager.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 116bcbd..31044d2 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -1288,6 +1288,11 @@ gsd_mouse_manager_stop (GsdMouseManager *manager)
g_debug ("Stopping mouse manager");
+ if (manager->priv->start_idle_id != 0) {
+ g_source_remove (manager->priv->start_idle_id);
+ manager->priv->start_idle_id = 0;
+ }
+
if (p->device_manager != NULL) {
g_signal_handler_disconnect (p->device_manager, p->device_added_id);
g_signal_handler_disconnect (p->device_manager, p->device_removed_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]