spicec-x11: protect against recursive incr properties

This commit is contained in:
Hans de Goede 2010-10-04 14:06:05 +02:00
parent ca3d290294
commit b74f21ce66

View File

@ -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);