From b74f21ce66ff9d41d16a7d344a4f795aa2dd4297 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 4 Oct 2010 14:06:05 +0200 Subject: spicec-x11: protect against recursive incr properties --- client/x11/platform.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/x11') diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index c6b2d7de..c1c2a5a3 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -2373,6 +2373,10 @@ static int get_selection(XEvent &event, Atom type, Atom prop, int format, if (!incr) { if (type_ret == incr_atom) { + if (waiting_for_property_notify) { + LOG_WARN("received an incr property notify while still reading another incr property"); + goto exit; + } XSelectInput(x_display, platform_win, PropertyChangeMask); XDeleteProperty(x_display, platform_win, prop); XFlush(x_display); -- cgit