Merge branch 'flush-events' into 'master'

Flush events

See merge request GNOME/gtk!2740
This commit is contained in:
Matthias Clasen 2020-10-24 12:53:01 +00:00
commit 77af993181
2 changed files with 37 additions and 4 deletions

28
NEWS
View File

@ -1,3 +1,31 @@
Overview of Changes in master
=============================
* GtkColumnView:
- Improve column resizing
- Make double-click reset column widths
- Move header outside of scrollbars
* GtkSearchEntry:
- Add an icon
* Accessibility:
- Implement Component for all widgets
- Implement Text and EditableText for all editables
- Rework accessible name/description computation
- Add documentation for app and widget developers
- Initial accessibility support for menus
* Introspection:
- Add some missing annotations
* Documentation:
- Use GtkApplication in all examples
* OS X:
- Fix various input issues
Overview of Changes in 3.99.3
=============================

View File

@ -814,12 +814,17 @@ _gdk_event_queue_handle_motion_compression (GdkDisplay *display)
void
_gdk_event_queue_flush (GdkDisplay *display)
{
GList *tmp_list;
for (tmp_list = display->queued_events.head; tmp_list; tmp_list = tmp_list->next)
while (TRUE)
{
GdkEvent *event = tmp_list->data;
GdkEvent *event;
event = (GdkEvent *)g_queue_pop_head (&display->queued_events);
if (!event)
return;
event->flags |= GDK_EVENT_FLUSHED;
_gdk_event_emit (event);
gdk_event_unref (event);
}
}