diff options
author | vimboss <devnull@localhost> | 2005-12-28 22:39:57 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2005-12-28 22:39:57 +0000 |
commit | b9a2bd01096e7c8ba098abf050fd6887051b9cf4 (patch) | |
tree | 63e6374375ebc6744379fba43c1c557187490143 /src/ui.c | |
parent | 16e3463fe0130f38fd5a7643fa42253a180d8124 (diff) | |
download | vim-b9a2bd01096e7c8ba098abf050fd6887051b9cf4.tar.gz |
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); |