]> git.lyx.org Git - lyx.git/commitdiff
* GuiWorkArea::focusInEvent(): avoid unnecessary full redraw if the work area was...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 3 Mar 2008 11:04:17 +0000 (11:04 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 3 Mar 2008 11:04:17 +0000 (11:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23409 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index bbd653397ce07047aa0d409973d18034e34c85a8..1229d6b8014eab3d54110e1ee496b6c809a77b9d 100644 (file)
@@ -612,7 +612,9 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e)
 
 void GuiWorkArea::focusInEvent(QFocusEvent * e)
 {
-       lyx_view_->setCurrentWorkArea(this);
+       if (lyx_view_->currentWorkArea() != this)
+               lyx_view_->setCurrentWorkArea(this);
+
        // Repaint the whole screen.
        // Note: this is different from redraw() as only the backing pixmap
        // will be redrawn, which is cheap.