[mutter/wip/wayland-input: 5/9] wayland: Install a device manager



commit ade116671a4b29e8a6ea0708ce443e1b0a4aab1b
Author: Neil Roberts <neil linux intel com>
Date:   Fri Jan 20 16:05:52 2012 +0000

    wayland: Install a device manager
    
    This just installs the default device manager from the wayland server
    code.

 src/wayland/meta-wayland.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index f459b6a..afc85b7 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -387,6 +387,8 @@ meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
                                       compositor->input_device,
                                       (struct wl_surface *) surface,
                                       get_time ());
+  wl_data_device_set_keyboard_focus ((struct wl_input_device *)
+                                      compositor->input_device);
 }
 
 static void
@@ -1331,6 +1333,8 @@ meta_wayland_init (void)
   g_signal_connect (compositor->stage, "event",
                     G_CALLBACK (event_cb), compositor);
 
+  wl_data_device_manager_init (compositor->wayland_display);
+
   compositor->input_device =
     meta_wayland_input_device_new (compositor->wayland_display,
                                    compositor->stage);



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