Switch motion hint emulation to be serial based.

For backends not supporting serials, just have
_gdk_windowing_window_get_next_serial return zero.
This commit is contained in:
Alexander Larsson
2009-01-23 21:07:53 +01:00
committed by Alexander Larsson
parent 19cd4d6af8
commit e24c9e291d
7 changed files with 41 additions and 16 deletions

View File

@ -444,6 +444,13 @@ process_internal_connection (GIOChannel *gioc,
return TRUE;
}
gulong
_gdk_windowing_window_get_next_serial (GdkDisplay *display)
{
return NextRequest (GDK_DISPLAY_XDISPLAY (display));
}
static GdkInternalConnection *
gdk_add_connection_handler (Display *display,
guint fd)

View File

@ -2352,7 +2352,7 @@ _gdk_events_queue (GdkDisplay *display)
if (gdk_event_translate (display, event, &xevent, FALSE))
{
((GdkEventPrivate *)event)->flags &= ~GDK_EVENT_PENDING;
_gdk_windowing_got_event (display, node, event);
_gdk_windowing_got_event (display, node, event, xevent.xany.serial);
}
else
{