[mutter/wip/wayland-stacking: 8/13] wayland: Install a device manager



commit a5167e56f3d1cccaecadc5e8daf8516ee1ed8fe6
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]