mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 20:30:11 +00:00
gtkimcontext: Avoid gdk_device_get_associated_device()
Query the seat for that.
This commit is contained in:
parent
6730b26b43
commit
2f792396d7
@ -549,7 +549,6 @@ gtk_im_context_filter_key (GtkIMContext *context,
|
||||
GdkModifierType state,
|
||||
int group)
|
||||
{
|
||||
GdkDevice *source_device;
|
||||
GdkTranslatedKey translated, no_lock;
|
||||
GdkEvent *key;
|
||||
gboolean ret;
|
||||
@ -560,16 +559,6 @@ gtk_im_context_filter_key (GtkIMContext *context,
|
||||
|
||||
g_return_val_if_fail (GTK_IS_IM_CONTEXT (context), FALSE);
|
||||
|
||||
if (gdk_device_get_device_type (device) == GDK_DEVICE_TYPE_LOGICAL)
|
||||
{
|
||||
source_device = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
source_device = device;
|
||||
device = gdk_device_get_associated_device (source_device);
|
||||
}
|
||||
|
||||
if (!gdk_display_translate_key (gdk_surface_get_display (surface),
|
||||
keycode,
|
||||
state,
|
||||
|
Loading…
Reference in New Issue
Block a user