Simplify (get the origin directly from the window).
2007-06-30 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (synthesize_crossing_events_for_ns_event): Simplify (get the origin directly from the window). svn path=/trunk/; revision=18315
This commit is contained in:

committed by
Richard Hult

parent
a598c633b5
commit
ee283b058a
@ -1,3 +1,9 @@
|
|||||||
|
2007-06-30 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/gdkevents-quartz.c:
|
||||||
|
(synthesize_crossing_events_for_ns_event): Simplify (get the
|
||||||
|
origin directly from the window).
|
||||||
|
|
||||||
2007-06-30 Richard Hult <richard@imendio.com>
|
2007-06-30 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* gdk/quartz/gdkevents-quartz.c: (create_crossing_event),
|
* gdk/quartz/gdkevents-quartz.c: (create_crossing_event),
|
||||||
|
@ -1133,7 +1133,6 @@ synthesize_crossing_events_for_ns_event (NSEvent *nsevent)
|
|||||||
GdkWindow *event_toplevel;
|
GdkWindow *event_toplevel;
|
||||||
GdkWindowImplQuartz *impl;
|
GdkWindowImplQuartz *impl;
|
||||||
NSPoint point;
|
NSPoint point;
|
||||||
gint x_orig, y_orig;
|
|
||||||
|
|
||||||
/* We only use NSMouseExited when leaving to the root
|
/* We only use NSMouseExited when leaving to the root
|
||||||
* window. The other cases are handled above by checking the
|
* window. The other cases are handled above by checking the
|
||||||
@ -1150,11 +1149,8 @@ synthesize_crossing_events_for_ns_event (NSEvent *nsevent)
|
|||||||
x = point.x;
|
x = point.x;
|
||||||
y = impl->height - point.y;
|
y = impl->height - point.y;
|
||||||
|
|
||||||
if (gdk_window_get_origin (event_toplevel, &x_orig, &y_orig))
|
x += GDK_WINDOW_OBJECT (event_toplevel)->x;
|
||||||
{
|
y += GDK_WINDOW_OBJECT (event_toplevel)->y;
|
||||||
x += x_orig;
|
|
||||||
y += y_orig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check if the root window has a child at this position, if
|
/* Check if the root window has a child at this position, if
|
||||||
* so ignore the event since it means we didn't exit to the
|
* so ignore the event since it means we didn't exit to the
|
||||||
|
Reference in New Issue
Block a user