+2001-12-24 Juergen Vigna <jug@sad.it>
+
+ * insettext.C (insetMotionNotify): added a mouse_x & mouse_y position
+ to check for REAL mouseMotion.
+
2001-12-20 Juergen Vigna <jug@sad.it>
* inset.C (cursor): return the owners cursor if available instead of
{
no_selection = true;
+ // use this to check mouse motion for selection!
+ mouse_x = x;
+ mouse_y = y;
+
int tmp_x = x - drawTextXOffset;
int tmp_y = y + insetAscent - getLyXText(bv)->first;
Inset * inset = bv->checkInsetHit(getLyXText(bv), tmp_x, tmp_y);
void InsetText::insetMotionNotify(BufferView * bv, int x, int y, int state)
{
- if (no_selection)
+ if (no_selection || ((mouse_x == x) && (mouse_y == y)))
return;
if (the_locking_inset) {
the_locking_inset->insetMotionNotify(bv, x - inset_x,
mutable BufferView * do_resize;
mutable bool do_reinit;
mutable bool in_insetAllowed;
+ ///
+ // these are used to check for mouse movement in Motion selection code
+ ///
+ int mouse_x;
+ int mouse_y;
};
#endif