From ebefac63f30ac038c0c35d7f1b9257483ec41812 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 28 Dec 2005 22:39:57 +0000 Subject: updated for version 7.0177 --- src/ui.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index c48af4ef8..ba5911f8a 100644 --- a/src/ui.c +++ b/src/ui.c @@ -469,9 +469,9 @@ clip_own_selection(cbd) #ifdef FEAT_X11 if (cbd == &clip_star) { - /* May have to show a different kind of highlighting for the selected - * area. There is no specific redraw command for this, just redraw - * all windows on the current buffer. */ + /* May have to show a different kind of highlighting for the + * selected area. There is no specific redraw command for this, + * just redraw all windows on the current buffer. */ if (cbd->owned && get_real_state() == VISUAL && clip_isautosel() @@ -2130,6 +2130,10 @@ clip_x11_request_selection(myShell, dpy, cbd) { if (XCheckTypedEvent(dpy, SelectionNotify, &event)) break; + if (XCheckTypedEvent(dpy, SelectionRequest, &event)) + /* We may get a SelectionRequest here and if we don't handle + * it we hang. KDE klipper does this, for example. */ + XtDispatchEvent(&event); /* Do we need this? Probably not. */ XSync(dpy, False); -- cgit v1.2.1