[gtk+] wayland: Use event->key.time for setting key event time



commit 6cd26e09392d9ea68d21daa9c68b0c03d3664cbc
Author: Kristian Høgsberg <krh bitplanet net>
Date:   Mon May 26 14:45:21 2014 -0700

    wayland: Use event->key.time for setting key event time
    
    We were using event->button.time before. That works because it's part of
    the common event header, but it's wrong.

 gdk/wayland/gdkdevice-wayland.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 0f0cf67..5cde19f 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1129,7 +1129,7 @@ deliver_key_event (GdkWaylandDeviceData *device,
   event->key.window = device->keyboard_focus ? g_object_ref (device->keyboard_focus) : NULL;
   gdk_event_set_device (event, device->master_keyboard);
   gdk_event_set_source_device (event, device->keyboard);
-  event->button.time = time_;
+  event->key.time = time_;
   event->key.state = device->modifiers;
   event->key.group = 0;
   event->key.hardware_keycode = key;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]