+2003-06-03 John Levon <levon@movementarian.org>
+
+ * lyx_gui.h: add sync_events()
+
+ * screen.C: sync events before showing the cursor
+
2003-05-08 Lars Gullik Bjønnes <larsbj@gullik.net>
* Makefile.am: better lib building
*/
void start(string const & batch, std::vector<string> const & files);
+/**
+ * Synchronise all pending events.
+ */
+void sync_events();
+
/**
* quit running LyX
*/
+2003-06-03 John Levon <levon@movementarian.org>
+
+ * lyx_gui.C: add sync_events()
+ * qscreen.C: remove previous hack for bug 818
+
2003-06-03 John Levon <levon@movementarian.org>
* qscreen.C: paint before saving the cursor pixmap
}
+void sync_events()
+{
+ qApp->processEvents();
+}
+
+
void exit()
{
delete lyxserver;
nocursor_pixmap_.reset(new QPixmap(cursor_w_, cursor_h_));
}
- // save old area
- bitBlt(nocursor_pixmap_.get(), 0, 0, owner_.getPixmap(),
- cursor_x_, cursor_y_, cursor_w_, cursor_h_);
-
if (!qApp->focusWidget())
return;
- // We could have pending paints. If we don't process them
- // before, we end up with pixel dirt when the cursor is
- // in insets
- qApp->processEvents();
+ // save old area
+ bitBlt(nocursor_pixmap_.get(), 0, 0, owner_.getPixmap(),
+ cursor_x_, cursor_y_, cursor_w_, cursor_h_);
Painter & pain(owner_.getPainter());
pain.start();
#include "rowpainter.h"
#include "insets/updatableinset.h"
#include "mathed/formulabase.h"
+#include "lyx_gui.h"
// Splash screen-specific stuff
#include "lyxfont.h"
void LyXScreen::showCursor(BufferView & bv)
{
+ // this is needed to make sure we copy back the right
+ // pixmap on the hide for the Qt frontend
+ lyx_gui::sync_events();
+
if (cursor_visible_)
return;
if (y < 0 || y + h > workarea().workHeight())
return;
- showCursor(x, y, h, shape);
-
cursor_visible_ = true;
+ showCursor(x, y, h, shape);
}
if (!cursor_visible_)
return;
- removeCursor();
cursor_visible_ = false;
+ removeCursor();
}
+2003-06-03 John Levon <levon@movementarian.org>
+
+ * lyx_gui.C: add sync_events()
+
2003-06-03 Angus Leeming <leeming@lyx.org>
* FormGraphics.C (build): a few comments.
}
+void sync_events()
+{
+ // FIXME
+}
+
+
FuncStatus getStatus(FuncRequest const & /*ev*/)
{
// Nothing interesting to do here