Emit GdkDevice::changed when the slave device being used changes

When the slave device changes, the master takes the shape of the
new one, modifying its axes, this signal is more useful to catch
this situation than the n-axes property
This commit is contained in:
Carlos Garnacho
2010-12-15 02:34:42 +01:00
parent f5a20ab65a
commit 9f41101ccc
2 changed files with 30 additions and 0 deletions

View File

@ -499,6 +499,8 @@ handle_device_changed (GdkDeviceManagerXI2 *device_manager,
_gdk_device_reset_axes (device);
translate_device_classes (display, device, ev->classes, ev->num_classes);
g_signal_emit_by_name (G_OBJECT (device), "changed");
}
static GdkCrossingMode