Mercurial > vim
comparison src/gui.c @ 1380:99a9e42e5688 v7.1.095
updated for version 7.1-095
author | vimboss |
---|---|
date | Wed, 05 Sep 2007 19:47:23 +0000 |
parents | a4365075d05c |
children | 40aa7ae37901 |
comparison
equal
deleted
inserted
replaced
1379:50f5ac5b90de | 1380:99a9e42e5688 |
---|---|
4517 | 4517 |
4518 # ifdef FEAT_XIM | 4518 # ifdef FEAT_XIM |
4519 xim_set_focus(in_focus); | 4519 xim_set_focus(in_focus); |
4520 # endif | 4520 # endif |
4521 | 4521 |
4522 ui_focus_change(in_focus); | 4522 /* Put events in the input queue only when allowed. |
4523 * ui_focus_change() isn't called directly, because it invokes | |
4524 * autocommands and that must not happen asynchronously. */ | |
4525 if (!hold_gui_events) | |
4526 { | |
4527 char_u bytes[3]; | |
4528 | |
4529 bytes[0] = CSI; | |
4530 bytes[1] = KS_EXTRA; | |
4531 bytes[2] = in_focus ? (int)KE_FOCUSGAINED : (int)KE_FOCUSLOST; | |
4532 add_to_input_buf(bytes, 3); | |
4533 } | |
4523 #endif | 4534 #endif |
4524 } | 4535 } |
4525 | 4536 |
4526 /* | 4537 /* |
4527 * Called when the mouse moved (but not when dragging). | 4538 * Called when the mouse moved (but not when dragging). |