forked from AuroraMiddleware/gtk
Add a physical_device argument to send_crossing_event et al
This commit is contained in:
parent
edd73ffbed
commit
7762311911
@ -1036,6 +1036,7 @@ do_show_window (GdkSurface *window, gboolean hide_window)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
send_crossing_event (GdkDisplay *display,
|
send_crossing_event (GdkDisplay *display,
|
||||||
|
GdkDevice *physical_device,
|
||||||
GdkSurface *window,
|
GdkSurface *window,
|
||||||
GdkEventType type,
|
GdkEventType type,
|
||||||
GdkCrossingMode mode,
|
GdkCrossingMode mode,
|
||||||
@ -1119,6 +1120,7 @@ find_common_ancestor (GdkSurface *win1,
|
|||||||
|
|
||||||
void
|
void
|
||||||
synthesize_crossing_events (GdkDisplay *display,
|
synthesize_crossing_events (GdkDisplay *display,
|
||||||
|
GdkDevice *physical_device,
|
||||||
GdkSurface *src,
|
GdkSurface *src,
|
||||||
GdkSurface *dest,
|
GdkSurface *dest,
|
||||||
GdkCrossingMode mode,
|
GdkCrossingMode mode,
|
||||||
@ -1153,6 +1155,7 @@ synthesize_crossing_events (GdkDisplay *display,
|
|||||||
else
|
else
|
||||||
notify_type = GDK_NOTIFY_ANCESTOR;
|
notify_type = GDK_NOTIFY_ANCESTOR;
|
||||||
send_crossing_event (display,
|
send_crossing_event (display,
|
||||||
|
physical_device,
|
||||||
a, GDK_LEAVE_NOTIFY,
|
a, GDK_LEAVE_NOTIFY,
|
||||||
mode,
|
mode,
|
||||||
notify_type,
|
notify_type,
|
||||||
@ -1172,6 +1175,7 @@ synthesize_crossing_events (GdkDisplay *display,
|
|||||||
while (win != c && win != NULL)
|
while (win != c && win != NULL)
|
||||||
{
|
{
|
||||||
send_crossing_event (display,
|
send_crossing_event (display,
|
||||||
|
physical_device,
|
||||||
win, GDK_LEAVE_NOTIFY,
|
win, GDK_LEAVE_NOTIFY,
|
||||||
mode,
|
mode,
|
||||||
notify_type,
|
notify_type,
|
||||||
@ -1214,6 +1218,7 @@ synthesize_crossing_events (GdkDisplay *display,
|
|||||||
next = b;
|
next = b;
|
||||||
|
|
||||||
send_crossing_event (display,
|
send_crossing_event (display,
|
||||||
|
physical_device,
|
||||||
win, GDK_ENTER_NOTIFY,
|
win, GDK_ENTER_NOTIFY,
|
||||||
mode,
|
mode,
|
||||||
notify_type,
|
notify_type,
|
||||||
@ -1233,6 +1238,7 @@ synthesize_crossing_events (GdkDisplay *display,
|
|||||||
notify_type = GDK_NOTIFY_INFERIOR;
|
notify_type = GDK_NOTIFY_INFERIOR;
|
||||||
|
|
||||||
send_crossing_event (display,
|
send_crossing_event (display,
|
||||||
|
physical_device,
|
||||||
b, GDK_ENTER_NOTIFY,
|
b, GDK_ENTER_NOTIFY,
|
||||||
mode,
|
mode,
|
||||||
notify_type,
|
notify_type,
|
||||||
@ -2245,6 +2251,7 @@ gdk_event_translate (MSG *msg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
synthesize_crossing_events (display,
|
synthesize_crossing_events (display,
|
||||||
|
_gdk_device_manager->system_pointer,
|
||||||
implicit_grab_surface, new_window,
|
implicit_grab_surface, new_window,
|
||||||
GDK_CROSSING_UNGRAB,
|
GDK_CROSSING_UNGRAB,
|
||||||
&msg->pt,
|
&msg->pt,
|
||||||
@ -2309,6 +2316,7 @@ gdk_event_translate (MSG *msg,
|
|||||||
mouse_window ? GDK_SURFACE_HWND (mouse_window) : NULL,
|
mouse_window ? GDK_SURFACE_HWND (mouse_window) : NULL,
|
||||||
new_window ? GDK_SURFACE_HWND (new_window) : NULL));
|
new_window ? GDK_SURFACE_HWND (new_window) : NULL));
|
||||||
synthesize_crossing_events (display,
|
synthesize_crossing_events (display,
|
||||||
|
_gdk_device_manager->system_pointer,
|
||||||
mouse_window, new_window,
|
mouse_window, new_window,
|
||||||
GDK_CROSSING_NORMAL,
|
GDK_CROSSING_NORMAL,
|
||||||
&msg->pt,
|
&msg->pt,
|
||||||
@ -2401,6 +2409,7 @@ gdk_event_translate (MSG *msg,
|
|||||||
|
|
||||||
if (!ignore_leave)
|
if (!ignore_leave)
|
||||||
synthesize_crossing_events (display,
|
synthesize_crossing_events (display,
|
||||||
|
_gdk_device_manager->system_pointer,
|
||||||
mouse_window, new_window,
|
mouse_window, new_window,
|
||||||
GDK_CROSSING_NORMAL,
|
GDK_CROSSING_NORMAL,
|
||||||
&msg->pt,
|
&msg->pt,
|
||||||
|
Loading…
Reference in New Issue
Block a user