Better comment for the event queue magic

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9615 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2005-02-11 18:07:06 +00:00
parent 6c6c7dc948
commit ed0d2079b8
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-02-11 John Levon <levon@movementarian.org>
* screen.C: clarify comment about event queue magic
2005-02-08 Lars Gullik Bjonnes <larsbj@gullik.net> 2005-02-08 Lars Gullik Bjonnes <larsbj@gullik.net>
* LyXView.C (updateLayoutChoice): minor change to some comments * LyXView.C (updateLayoutChoice): minor change to some comments

View File

@ -147,8 +147,14 @@ void LyXScreen::checkAndGreyOut()
void LyXScreen::showCursor(BufferView & bv) void LyXScreen::showCursor(BufferView & bv)
{ {
// this is needed to make sure we copy back the right // You are not expected to understand this. This forces Qt
// pixmap on the hide for the Qt frontend // (the problem case) to deal with its event queue. This is
// necessary when holding down a key such as 'page down' or
// just typing: without this processing of the event queue,
// the cursor gets ahead of itself without a selection or
// workarea redraw having a chance to keep up. If you think
// you can remove this, try selecting text with the mouse
// in Qt, or holding Page Down on the User's Guide.
lyx_gui::sync_events(); lyx_gui::sync_events();
if (cursor_visible_) if (cursor_visible_)