[gtk+] wayland: Keyboard don't have x/y



commit 0d64582688ac7592fefacca6aae9b11b171f1624
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 9 17:31:39 2016 -0400

    wayland: Keyboard don't have x/y
    
    These axes are not very useful in the first place, but on a
    keyboard they just don't make any sense at all.

 gdk/wayland/gdkdevice-wayland.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 0b18211..cfd209f 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -2716,6 +2716,7 @@ seat_handle_capabilities (void                    *data,
                                      "device-manager", seat->device_manager,
                                      "seat", seat,
                                      NULL);
+      _gdk_device_reset_axes (seat->keyboard);
       _gdk_device_set_associated_device (seat->keyboard, seat->master_keyboard);
 
       device_manager->devices =
@@ -3478,6 +3479,7 @@ init_devices (GdkWaylandSeat *seat)
                                        "device-manager", device_manager,
                                        "seat", seat,
                                        NULL);
+
   GDK_WAYLAND_DEVICE (seat->master_pointer)->pointer = &seat->pointer_info;
 
   device_manager->devices =
@@ -3495,6 +3497,7 @@ init_devices (GdkWaylandSeat *seat)
                                         "device-manager", device_manager,
                                         "seat", seat,
                                         NULL);
+  _gdk_device_reset_axes (seat->master_keyboard);
 
   device_manager->devices =
     g_list_prepend (device_manager->devices, seat->master_keyboard);


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