summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/device.c5
-rw-r--r--input/manager.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/input/device.c b/input/device.c
index 6bf3da9a..3e019a44 100644
--- a/input/device.c
+++ b/input/device.c
@@ -1047,11 +1047,6 @@ static int register_path(DBusConnection *conn, const char *path, struct device *
return -1;
}
- dbus_connection_emit_signal(conn, INPUT_PATH,
- INPUT_MANAGER_INTERFACE, "DeviceCreated",
- DBUS_TYPE_STRING, &path,
- DBUS_TYPE_INVALID);
-
devices = g_slist_append(devices, idev);
info("Created input device: %s", path);
diff --git a/input/manager.c b/input/manager.c
index 75ab1c15..47638278 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -327,6 +327,11 @@ static gboolean interrupt_connect_cb(GIOChannel *chan,
goto cleanup;
}
+ dbus_connection_emit_signal(pr->conn, INPUT_PATH,
+ INPUT_MANAGER_INTERFACE, "DeviceCreated",
+ DBUS_TYPE_STRING, &path,
+ DBUS_TYPE_INVALID);
+
device_paths = g_slist_append(device_paths, g_strdup(path));
/* Replying to the requestor */
@@ -736,6 +741,11 @@ static void headset_record_reply(DBusPendingCall *call, void *data)
goto fail;
}
+ dbus_connection_emit_signal(pr->conn, INPUT_PATH,
+ INPUT_MANAGER_INTERFACE, "DeviceCreated",
+ DBUS_TYPE_STRING, &path,
+ DBUS_TYPE_INVALID);
+
device_paths = g_slist_append(device_paths, g_strdup(path));
pr_reply = dbus_message_new_method_return(pr->msg);