]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
* allow resizing of detached panel
[lyx.git] / src / lyxfunc.C
index 7de71684d5d8267f2de39d929e5b4b88325e2ce3..582806ea8bac5b943f73a3fd39018c70c3ad1dcc 100644 (file)
@@ -1712,13 +1712,18 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                }
 
                if (lyx_view_ && view()->buffer()) {
-                       // Redraw screen unless explicitly told otherwise.
-                       // This also initializes the position cache for all insets
-                       // in (at least partially) visible top-level paragraphs.
-                       std::pair<bool, bool> needSecondUpdate = view()->update(updateFlags);
+                       // BufferView::update() updates the ViewMetricsInfo and
+                       // also initializes the position cache for all insets in
+                       // (at least partially) visible top-level paragraphs.
+                       std::pair<bool, bool> needSecondUpdate 
+                               = view()->update(updateFlags);
 
+                       // Redraw screen unless explicitly told otherwise.
                        if (needSecondUpdate.first)
-                               view()->buffer()->changed(needSecondUpdate.second);
+                               // Buffer::changed() signals that a repaint is needed.
+                               // The frontend (WorkArea) knows which area to repaint
+                               // thanks to the ViewMetricsInfo updated above.
+                               view()->buffer()->changed();
 
                        lyx_view_->updateStatusBar();