GdkEvent: OWNER_CHANGE events have a selection as well

This commit is contained in:
Timm Bäder 2017-09-26 18:22:27 +02:00
parent 74ce20451f
commit 29dd0a940e

View File

@ -3008,7 +3008,8 @@ gdk_event_get_selection (const GdkEvent *event,
if (event->type == GDK_SELECTION_CLEAR ||
event->type == GDK_SELECTION_NOTIFY ||
event->type == GDK_SELECTION_REQUEST)
event->type == GDK_SELECTION_REQUEST ||
event->type == GDK_OWNER_CHANGE)
{
*selection = event->selection.selection;
return TRUE;