Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDialog() methods.

This is a requirement on Mac to get the current buffer view topmost after buffer switch.
This commit is contained in:
Stephan Witt 2016-04-16 22:30:33 +02:00
parent 23ef2947a3
commit 24dfca3e2a
2 changed files with 4 additions and 0 deletions

View File

@ -3615,7 +3615,9 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
for (; i != ids.size(); ++i) { for (; i != ids.size(); ++i) {
GuiView & gv = guiApp->view(ids[i]); GuiView & gv = guiApp->view(ids[i]);
if (gv.workArea(*buffer)) { if (gv.workArea(*buffer)) {
gv.raise();
gv.activateWindow(); gv.activateWindow();
gv.setFocus();
gv.setBuffer(buffer); gv.setBuffer(buffer);
break; break;
} }

View File

@ -57,6 +57,8 @@ What's new
- Fix display of collapsable insets when the same document is shown in - Fix display of collapsable insets when the same document is shown in
two views with different width (bug 9756). two views with different width (bug 9756).
- Raise GuiView on buffer switch to bring it topmost in multi-window mode.
* INTERNALS * INTERNALS