Skip to content

x11: Ignore old XFixesSelectionNotify events

Jason Crain requested to merge jcrain/gtk:xfixes-timestamp into master

GtkEntryCompletion can rapidly release and claim ownership of the primary selection. This generates multiple XFixesSelectionNotify events, first stating that no one owns the selection, then another stating that we own the selection. The notification that no one owns the selection causes GtkEntryCompletion to deselect the text, breaking inline autocompletion.

This fixes it by ignoring any XFixesSelectionNotify with a timestamp earlier than our clipboard timestamp.

Fixes #14 (closed)

Merge request reports