[gtk+/client-side-windows: 147/284] Add fill_crossing_event to be used soon
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 147/284] Add fill_crossing_event to be used soon
- Date: Thu, 2 Apr 2009 14:12:05 -0400 (EDT)
commit 54e68780016f9b8f95e9ad62b9a7ee0c373537c1
Author: Richard Hult <richard imendio com>
Date: Fri Jan 16 20:22:01 2009 +0100
Add fill_crossing_event to be used soon
---
gdk/quartz/gdkevents-quartz.c | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 0b99a21..c955427 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -1398,6 +1398,42 @@ find_window_for_ns_event (NSEvent *nsevent,
}
static void
+fill_crossing_event (GdkWindow *toplevel,
+ GdkEvent *event,
+ NSEvent *nsevent,
+ gint x,
+ gint y,
+ GdkEventType event_type,
+ GdkCrossingMode mode,
+ GdkNotifyType detail)
+{
+ GdkWindowObject *private;
+ NSPoint point;
+
+ private = GDK_WINDOW_OBJECT (toplevel);
+
+ point = [nsevent locationInWindow];
+
+ event->any.type = event_type;
+ event->crossing.window = toplevel;
+ event->crossing.subwindow = NULL;
+ event->crossing.time = get_time_from_ns_event (nsevent);
+ event->crossing.x = x;
+ event->crossing.y = y;
+ event->crossing.mode = mode;
+ event->crossing.detail = detail;
+ event->crossing.state = get_keyboard_modifiers_from_ns_event (nsevent);
+
+ convert_window_coordinates_to_root (toplevel,
+ event->crossing.x,
+ event->crossing.y,
+ &event->crossing.x_root,
+ &event->crossing.y_root);
+
+ /* FIXME: Focus and button state? */
+}
+
+static void
fill_button_event (GdkWindow *window,
GdkEvent *event,
NSEvent *nsevent,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]