[gtk+/wip/mir] Link associated devices
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir] Link associated devices
- Date: Tue, 27 May 2014 08:19:02 +0000 (UTC)
commit 8411a3e2532eec59022c7918ec4d54934ed5bbae
Author: Robert Ancell <robert ancell canonical com>
Date: Tue May 27 09:23:57 2014 +0200
Link associated devices
gdk/mir/gdkmirdevicemanager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/mir/gdkmirdevicemanager.c b/gdk/mir/gdkmirdevicemanager.c
index 92bccd3..46d7d78 100644
--- a/gdk/mir/gdkmirdevicemanager.c
+++ b/gdk/mir/gdkmirdevicemanager.c
@@ -18,6 +18,7 @@
#include "config.h"
#include "gdkdevicemanagerprivate.h"
+#include "gdkdeviceprivate.h"
#include "gdkmir.h"
#include "gdkmir-private.h"
@@ -98,6 +99,8 @@ gdk_mir_device_manager_constructed (GObject *object)
device_manager->keyboard = _gdk_mir_keyboard_new (GDK_DEVICE_MANAGER (device_manager), "Mir Keyboard");
device_manager->pointer = _gdk_mir_pointer_new (GDK_DEVICE_MANAGER (device_manager), "Mir Pointer");
+ _gdk_device_set_associated_device (device_manager->keyboard, device_manager->pointer);
+ _gdk_device_set_associated_device (device_manager->pointer, device_manager->keyboard);
G_OBJECT_CLASS (gdk_mir_device_manager_parent_class)->constructed (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]