]> git.lyx.org Git - features.git/commitdiff
* WorkArea::dispatch(): avoid GUI tweaks if cmd is a mouse motion with no button...
authorAbdelrazak Younes <younes@lyx.org>
Sun, 3 Dec 2006 10:43:55 +0000 (10:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 3 Dec 2006 10:43:55 +0000 (10:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16156 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/WorkArea.C

index 677dca8bd9e9fe1d40f03456ce0cb77cb071a95f..a4b870e7ea1f92bcefe1ed37b6db2bda12ff3eeb 100644 (file)
@@ -204,14 +204,19 @@ void WorkArea::dispatch(FuncRequest const & cmd0)
                lyx_view_.updateToolbars();
        }
 
-       // Slight hack: this is only called currently when we
-       // clicked somewhere, so we force through the display
-       // of the new status here.
-       lyx_view_.clearMessage();
-
-       // Show the cursor immediately after any operation.
-       hideCursor();
-       toggleCursor();
+       
+       // 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
+               // clicked somewhere, so we force through the display
+               // of the new status here.
+               lyx_view_.clearMessage();
+
+               // Show the cursor immediately after any operation.
+               hideCursor();
+               toggleCursor();
+       }
 
        if (needRedraw.first)
                redraw();