[gtk+/saved/mir: 15/47] Implement gdk_mir_window_impl_get_device_state
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/saved/mir: 15/47] Implement gdk_mir_window_impl_get_device_state
- Date: Wed, 22 Oct 2014 16:21:06 +0000 (UTC)
commit 129ac8f16cfd89754d1e2183ec2bd7b58ec7651c
Author: Robert Ancell <robert ancell canonical com>
Date: Tue May 27 12:06:52 2014 +0200
Implement gdk_mir_window_impl_get_device_state
gdk/mir/gdkmirwindowimpl.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index f2f1f79..cbe44c5 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -26,6 +26,7 @@
#include "gdkwindowimpl.h"
#include "gdkinternals.h"
#include "gdkdisplayprivate.h"
+#include "gdkdeviceprivate.h"
#define GDK_TYPE_MIR_WINDOW_IMPL (gdk_mir_window_impl_get_type ())
#define GDK_MIR_WINDOW_IMPL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object),
GDK_TYPE_WINDOW_IMPL_MIR, GdkMirWindowImpl))
@@ -892,8 +893,12 @@ gdk_mir_window_impl_get_device_state (GdkWindow *window,
gdouble *y,
GdkModifierType *mask)
{
- g_printerr ("gdk_mir_window_impl_get_device_state\n");
- return FALSE;
+ //g_printerr ("gdk_mir_window_impl_get_device_state\n");
+ GdkWindow *child;
+
+ _gdk_device_query_state (device, window, NULL, &child, NULL, NULL, x, y, mask);
+
+ return child != NULL;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]