From c9261f50aabecaccb90bf01a078f86c9c67f5c7e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 24 Nov 2017 20:38:47 -0500 Subject: [PATCH] x11: Stop emitting devicemanager signals Nobody is listening to these anymore, so there is no point in emitting them. --- gdk/x11/gdkdevicemanager-xi2.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index 51a89db6b1..beff7bea7b 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -598,8 +598,6 @@ add_device (GdkX11DeviceManagerXI2 *device_manager, } } - g_signal_emit_by_name (device_manager, "device-added", device); - return device; } @@ -631,8 +629,6 @@ remove_device (GdkX11DeviceManagerXI2 *device_manager, detach_from_seat (device); device_manager->devices = g_list_remove (device_manager->devices, device); - g_signal_emit_by_name (device_manager, "device-removed", device); - g_object_run_dispose (G_OBJECT (device)); g_hash_table_remove (device_manager->id_table, @@ -918,8 +914,6 @@ handle_hierarchy_changed (GdkX11DeviceManagerXI2 *device_manager, _gdk_device_remove_slave (master, slave); _gdk_device_set_associated_device (slave, NULL); - g_signal_emit_by_name (device_manager, "device-changed", master); - seat = gdk_device_get_seat (master); gdk_seat_default_remove_slave (GDK_SEAT_DEFAULT (seat), slave); } @@ -944,12 +938,8 @@ handle_hierarchy_changed (GdkX11DeviceManagerXI2 *device_manager, seat = gdk_device_get_seat (master); gdk_seat_default_add_slave (GDK_SEAT_DEFAULT (seat), slave); - - g_signal_emit_by_name (device_manager, "device-changed", master); } } - - g_signal_emit_by_name (device_manager, "device-changed", slave); } } }