mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* WorkArea::dispatch(): avoid GUI tweaks if cmd is a mouse motion with no button pressed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16156 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a5b66d297f
commit
6a96321573
@ -204,6 +204,10 @@ void WorkArea::dispatch(FuncRequest const & cmd0)
|
|||||||
lyx_view_.updateToolbars();
|
lyx_view_.updateToolbars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// GUI tweaks except with mouse motion with no button pressed.
|
||||||
|
if (!(cmd0.action == LFUN_MOUSE_MOTION
|
||||||
|
&& cmd0.button() == mouse_button::none)) {
|
||||||
// Slight hack: this is only called currently when we
|
// Slight hack: this is only called currently when we
|
||||||
// clicked somewhere, so we force through the display
|
// clicked somewhere, so we force through the display
|
||||||
// of the new status here.
|
// of the new status here.
|
||||||
@ -212,6 +216,7 @@ void WorkArea::dispatch(FuncRequest const & cmd0)
|
|||||||
// Show the cursor immediately after any operation.
|
// Show the cursor immediately after any operation.
|
||||||
hideCursor();
|
hideCursor();
|
||||||
toggleCursor();
|
toggleCursor();
|
||||||
|
}
|
||||||
|
|
||||||
if (needRedraw.first)
|
if (needRedraw.first)
|
||||||
redraw();
|
redraw();
|
||||||
|
Loading…
Reference in New Issue
Block a user