Add a vfunc for _gdk_events_queue
This commit is contained in:
@ -2682,6 +2682,7 @@ _gdk_display_x11_class_init (GdkDisplayX11Class * class)
|
||||
display_class->sync = gdk_x11_display_sync;
|
||||
display_class->flush = gdk_x11_display_flush;
|
||||
display_class->has_pending = gdk_x11_display_has_pending;
|
||||
display_class->queue_events = _gdk_x11_display_queue_events;
|
||||
display_class->get_default_group = gdk_x11_display_get_default_group;
|
||||
display_class->supports_selection_notification = gdk_x11_display_supports_selection_notification;
|
||||
display_class->request_selection_notification = gdk_x11_display_request_selection_notification;
|
||||
|
||||
@ -263,7 +263,7 @@ gdk_event_source_check (GSource *source)
|
||||
}
|
||||
|
||||
void
|
||||
_gdk_events_queue (GdkDisplay *display)
|
||||
_gdk_x11_display_queue_events (GdkDisplay *display)
|
||||
{
|
||||
GdkEvent *event;
|
||||
XEvent xevent;
|
||||
@ -279,14 +279,14 @@ _gdk_events_queue (GdkDisplay *display)
|
||||
XNextEvent (xdisplay, &xevent);
|
||||
|
||||
switch (xevent.type)
|
||||
{
|
||||
case KeyPress:
|
||||
case KeyRelease:
|
||||
break;
|
||||
default:
|
||||
if (XFilterEvent (&xevent, None))
|
||||
continue;
|
||||
}
|
||||
{
|
||||
case KeyPress:
|
||||
case KeyRelease:
|
||||
break;
|
||||
default:
|
||||
if (XFilterEvent (&xevent, None))
|
||||
continue;
|
||||
}
|
||||
|
||||
event = gdk_event_source_translate_event (event_source, &xevent);
|
||||
|
||||
|
||||
@ -149,7 +149,8 @@ void _gdk_x11_display_update_grab_info_ungrab (GdkDisplay *display,
|
||||
GdkDevice *device,
|
||||
guint32 time,
|
||||
gulong serial);
|
||||
void _gdk_x11_device_check_extension_events (GdkDevice *device);
|
||||
void _gdk_x11_display_queue_events (GdkDisplay *display);
|
||||
void _gdk_x11_device_check_extension_events (GdkDevice *device);
|
||||
|
||||
void _gdk_x11_display_manager_add_display (GdkDisplayManager *manager,
|
||||
GdkDisplay *display);
|
||||
|
||||
Reference in New Issue
Block a user