forked from AuroraMiddleware/gtk
Merge branch 'xfixes-timestamp' into 'master'
x11: Ignore old XFixesSelectionNotify events Closes #14 See merge request GNOME/gtk!259
This commit is contained in:
commit
ad6255a841
@ -491,6 +491,14 @@ gdk_x11_clipboard_xevent (GdkDisplay *display,
|
||||
if (sn->selection != cb->xselection)
|
||||
return FALSE;
|
||||
|
||||
if (sn->selection_timestamp < cb->timestamp)
|
||||
{
|
||||
GDK_DISPLAY_NOTE (display, CLIPBOARD,
|
||||
g_printerr ("%s: Ignoring XFixesSelectionNotify with too old timestamp (%lu vs %lu)\n",
|
||||
cb->selection, sn->selection_timestamp, cb->timestamp));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (sn->owner == GDK_X11_DISPLAY (display)->leader_window)
|
||||
{
|
||||
GDK_DISPLAY_NOTE (display, CLIPBOARD,
|
||||
|
Loading…
Reference in New Issue
Block a user