Mercurial > vim
comparison src/ui.c @ 620:9e359e5759f6 v7.0177
updated for version 7.0177
author | vimboss |
---|---|
date | Wed, 28 Dec 2005 22:39:57 +0000 |
parents | f1d46f948241 |
children | 2392a6da4aa4 |
comparison
equal
deleted
inserted
replaced
619:66263e241ce3 | 620:9e359e5759f6 |
---|---|
467 { | 467 { |
468 cbd->owned = (clip_gen_own_selection(cbd) == OK); | 468 cbd->owned = (clip_gen_own_selection(cbd) == OK); |
469 #ifdef FEAT_X11 | 469 #ifdef FEAT_X11 |
470 if (cbd == &clip_star) | 470 if (cbd == &clip_star) |
471 { | 471 { |
472 /* May have to show a different kind of highlighting for the selected | 472 /* May have to show a different kind of highlighting for the |
473 * area. There is no specific redraw command for this, just redraw | 473 * selected area. There is no specific redraw command for this, |
474 * all windows on the current buffer. */ | 474 * just redraw all windows on the current buffer. */ |
475 if (cbd->owned | 475 if (cbd->owned |
476 && get_real_state() == VISUAL | 476 && get_real_state() == VISUAL |
477 && clip_isautosel() | 477 && clip_isautosel() |
478 && hl_attr(HLF_V) != hl_attr(HLF_VNC)) | 478 && hl_attr(HLF_V) != hl_attr(HLF_VNC)) |
479 redraw_curbuf_later(INVERTED_ALL); | 479 redraw_curbuf_later(INVERTED_ALL); |
2128 */ | 2128 */ |
2129 for (;;) | 2129 for (;;) |
2130 { | 2130 { |
2131 if (XCheckTypedEvent(dpy, SelectionNotify, &event)) | 2131 if (XCheckTypedEvent(dpy, SelectionNotify, &event)) |
2132 break; | 2132 break; |
2133 if (XCheckTypedEvent(dpy, SelectionRequest, &event)) | |
2134 /* We may get a SelectionRequest here and if we don't handle | |
2135 * it we hang. KDE klipper does this, for example. */ | |
2136 XtDispatchEvent(&event); | |
2133 | 2137 |
2134 /* Do we need this? Probably not. */ | 2138 /* Do we need this? Probably not. */ |
2135 XSync(dpy, False); | 2139 XSync(dpy, False); |
2136 | 2140 |
2137 /* Bernhard Walle solved a slow paste response in an X terminal by | 2141 /* Bernhard Walle solved a slow paste response in an X terminal by |