X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=f1a859662020c8953889b418e9b832adda2837d1;hb=f3711d8a651445a61e1a759ac7493a9c5c7800e2;hp=b34c6762236c4aef3e1de0fa36a9c9483be9590c;hpb=a1e991a82ea76d66aaca4e781df920d20bed59b0;p=lyx.git diff --git a/src/Cursor.h b/src/Cursor.h index b34c676223..f1a8596620 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -294,8 +294,10 @@ public: /// mutable DispatchResult disp_; /// - DocIterator const & beforeDispatchCursor() { return beforeDispatchCursor_; } - + DocIterator const & beforeDispatchCursor() const { return beforeDispatchCursor_; } + /// + void saveBeforeDispatchPosXY(); + private: /** * The target x position of the cursor. This is used for when @@ -325,6 +327,10 @@ private: bool logicalpos_; /// position before dispatch started DocIterator beforeDispatchCursor_; + /// cursor screen coordinates before dispatch started + int beforeDispatchPosX_; + int beforeDispatchPosY_; + // FIXME: make them private. public: