]> git.lyx.org Git - lyx.git/commitdiff
Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDi...
authorStephan Witt <switt@lyx.org>
Sat, 16 Apr 2016 20:30:33 +0000 (22:30 +0200)
committerStephan Witt <switt@lyx.org>
Tue, 19 Apr 2016 19:58:58 +0000 (21:58 +0200)
This is a requirement on Mac to get the current buffer view topmost after buffer switch.

src/frontends/qt4/GuiView.cpp
status.22x

index c2101f3965177a1aa4ec89cec46d447c328f5148..8133ac246f7ddbf3f80a2a463964bd1ff517044f 100644 (file)
@@ -3615,7 +3615,9 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        for (; i != ids.size(); ++i) {
                                GuiView & gv = guiApp->view(ids[i]);
                                if (gv.workArea(*buffer)) {
+                                       gv.raise();
                                        gv.activateWindow();
+                                       gv.setFocus();
                                        gv.setBuffer(buffer);
                                        break;
                                }
index a75fc2b9e456cd9266516eb12e93913feeb087a5..d05694fa14cf7ca4ae046e0210839958b5b4753f 100644 (file)
@@ -57,6 +57,8 @@ What's new
 - Fix display of collapsable insets when the same document is shown in
   two views with different width (bug 9756).
 
+- Raise GuiView on buffer switch to bring it topmost in multi-window mode.
+
 
 * INTERNALS