[mutter/wip/garnacho/virtual-input-device: 85/94] clutter/evdev: Initialize seat_evdev->manager_evdev



commit b58e0474f4ab6cc75d15052c4c50ea31ee92d152
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jul 11 18:36:14 2016 +0200

    clutter/evdev: Initialize seat_evdev->manager_evdev
    
    Otherwise we access a NULL pointer when dispatching events.

 clutter/clutter/evdev/clutter-seat-evdev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-seat-evdev.c b/clutter/clutter/evdev/clutter-seat-evdev.c
index 1e2260e..1dc7496 100644
--- a/clutter/clutter/evdev/clutter-seat-evdev.c
+++ b/clutter/clutter/evdev/clutter-seat-evdev.c
@@ -125,6 +125,7 @@ clutter_seat_evdev_new (ClutterDeviceManagerEvdev *manager_evdev)
   if (!seat)
     return NULL;
 
+  seat->manager_evdev = manager_evdev;
   device = _clutter_input_device_evdev_new_virtual (
     manager, seat, CLUTTER_POINTER_DEVICE);
   stage = _clutter_device_manager_evdev_get_stage (manager_evdev);


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